From 1db33e8f0d3368e49ef105e0d091f1ce4fc4ae26 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 14 Mar 2026 22:59:05 +0000 Subject: Don't pass null to Texture constructor pixel data Pixel data variant now proxies to the simple version and then uploads the image data, instead of vice versa with nullptr pixels. --- ui/editNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/editNetwork.cpp') diff --git a/ui/editNetwork.cpp b/ui/editNetwork.cpp index 0215468..a213ccd 100644 --- a/ui/editNetwork.cpp +++ b/ui/editNetwork.cpp @@ -10,7 +10,7 @@ constexpr const glm::u8vec4 TRANSPARENT_BLUE {30, 50, 255, 200}; -EditNetwork::EditNetwork(Network * n) : network {n}, blue {1, 1, &TRANSPARENT_BLUE} { } +EditNetwork::EditNetwork(Network * n) : network {n}, blue {1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &TRANSPARENT_BLUE} { } bool EditNetwork::click(const SDL_MouseButtonEvent & e, const Ray & ray) -- cgit v1.3