From 059e97d2840dcfb488f48e57a3ffbe7df7a902b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 20 Feb 2026 17:06:25 +0100 Subject: [PATCH] GL: once again I forgot about this one particular MSVC 2015 shittiness. --- src/Magnum/GL/Test/MeshGLTest.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Magnum/GL/Test/MeshGLTest.cpp b/src/Magnum/GL/Test/MeshGLTest.cpp index 882fba1e1..53a0734b1 100644 --- a/src/Magnum/GL/Test/MeshGLTest.cpp +++ b/src/Magnum/GL/Test/MeshGLTest.cpp @@ -5950,7 +5950,9 @@ void MeshGLTest::multiDrawIndirectSparseBuffer() { /* First element is unused to test that the offset is passed properly */ struct Indirect { DrawArraysIndirect command; - UnsignedInt:32; + /* MSVC 2015 doesn't like anonymous bitfields like `UnsignedInt:32` in + local structs, have to name them */ + UnsignedInt padding; } indirect[3]; for(Int i: {0, 1}) { indirect[i + 1].command.count = data.counts[i]; @@ -6103,7 +6105,9 @@ void MeshGLTest::multiDrawIndirectIndexedSparseBuffer() { /* First element is unused to test that the offset is passed properly */ struct Indirect { DrawElementsIndirect command; - UnsignedInt:32; + /* MSVC 2015 doesn't like anonymous bitfields like `UnsignedInt:32` in + local structs, have to name them */ + UnsignedInt padding; } indirect[3]; for(Int i: {0, 1}) { indirect[i + 1].command.count = data.counts[i]; @@ -6234,7 +6238,9 @@ void MeshGLTest::multiDrawIndirectCountSparseBuffer() { properly */ struct Indirect { DrawArraysIndirect command; - UnsignedInt:32; + /* MSVC 2015 doesn't like anonymous bitfields like `UnsignedInt:32` in + local structs, have to name them */ + UnsignedInt padding; } indirect[3]; for(Int i: {0, 1}) { indirect[i + 1].command.count = data.counts[i]; @@ -6368,7 +6374,9 @@ void MeshGLTest::multiDrawIndirectCountIndexedSparseBuffer() { /* First element is unused to test that the offset is passed properly */ struct Indirect { DrawElementsIndirect command; - UnsignedInt:32; + /* MSVC 2015 doesn't like anonymous bitfields like `UnsignedInt:32` in + local structs, have to name them */ + UnsignedInt padding; } indirect[3]; for(Int i: {0, 1}) { indirect[i + 1].command.count = data.counts[i];