summaryrefslogtreecommitdiffhomepage
path: root/src/wireframe-mesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wireframe-mesh.cpp')
-rw-r--r--src/wireframe-mesh.cpp4
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)