diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 01:21:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 01:21:51 +0200 |
commit | d5212f948304b575b494b2065f14e934aaa426e1 (patch) | |
tree | b533247df458138895f3b11b4c74fed8647d9fcb /src | |
parent | 70dc294b8ac3a62b9c61a75e0aec3064eef72122 (diff) |
a
Diffstat (limited to 'src')
-rw-r--r-- | src/wireframe-mesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wireframe-mesh.cpp b/src/wireframe-mesh.cpp index 843bc760..14af4a15 100644 --- a/src/wireframe-mesh.cpp +++ b/src/wireframe-mesh.cpp @@ -14,10 +14,10 @@ namespace Magnum::Examples::wireframe GL::RectangleTexture wireframe::null::make_constant_texture() { - const Vector4ub pixel{255, 255, 255, 255}; + const Vector4ub data[] = { {255, 255, 255, 255} }; Trade::ImageData2D img{PixelStorage{}.setImageHeight(1).setRowLength(1).setAlignment(1), PixelFormat::RGBA8Unorm, {1, 1}, {}, - Containers::arrayView(&pixel, 1), {}, {}}; + Containers::arrayView(data, 1), {}, {}}; GL::RectangleTexture tex; tex.setWrapping(GL::SamplerWrapping::ClampToEdge) .setMagnificationFilter(GL::SamplerFilter::Nearest) |