Fix odd linux compile error in tests

This commit is contained in:
baldurk
2020-04-08 14:51:34 +01:00
parent 96c7eb0b93
commit 3d29947367
@@ -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);