summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-09 01:21:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-09 01:21:51 +0200
commitd5212f948304b575b494b2065f14e934aaa426e1 (patch)
treeb533247df458138895f3b11b4c74fed8647d9fcb /src
parent70dc294b8ac3a62b9c61a75e0aec3064eef72122 (diff)
a
Diffstat (limited to 'src')
-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)