diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-14 22:59:05 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-14 22:59:05 +0000 |
| commit | 1db33e8f0d3368e49ef105e0d091f1ce4fc4ae26 (patch) | |
| tree | 136a7582f65fc1e1ac4cd2174e025fef78b82fec /ui | |
| parent | Shared VAO for all 3 parts of RailVehicleClass (diff) | |
| download | ilt-1db33e8f0d3368e49ef105e0d091f1ce4fc4ae26.tar.bz2 ilt-1db33e8f0d3368e49ef105e0d091f1ce4fc4ae26.tar.xz ilt-1db33e8f0d3368e49ef105e0d091f1ce4fc4ae26.zip | |
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.
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/editNetwork.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<GlobalPosition3D> & ray) |
