From 3d29947367ee9f60c53a4b44ad108857520bb142 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 8 Apr 2020 14:51:34 +0100 Subject: [PATCH] Fix odd linux compile error in tests --- util/test/demos/gl/gl_multithread_rendering.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/util/test/demos/gl/gl_multithread_rendering.cpp b/util/test/demos/gl/gl_multithread_rendering.cpp index 3b71de724..c244b586a 100644 --- a/util/test/demos/gl/gl_multithread_rendering.cpp +++ b/util/test/demos/gl/gl_multithread_rendering.cpp @@ -73,11 +73,14 @@ void main() { void *ctx; - std::atomic_bool rendering = true; + std::atomic_bool rendering; GLuint VB, VAO, prog, FBO, tex; } A, B; + A.rendering = true; + B.rendering = true; + A.VB = MakeBuffer(); glBindBuffer(GL_ARRAY_BUFFER, A.VB); glBufferStorage(GL_ARRAY_BUFFER, sizeof(RedTri), RedTri, 0); @@ -114,7 +117,8 @@ void main() A.ctx = MakeContext(mainWindow, mainContext); B.ctx = MakeContext(mainWindow, mainContext); - std::atomic_bool quit = false; + std::atomic_bool quit; + quit = false; auto windowThread = [&](int idx) { ctxdata &ctx = (idx == 0 ? A : B);