From 7a8b4a46646360e6df6b7f286d5f327d4725b4ad Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 15 Mar 2021 09:58:57 +0000 Subject: [PATCH] Fix compile and code style errors in GL_Simple_Triangle --- util/test/demos/gl/gl_simple_triangle.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/util/test/demos/gl/gl_simple_triangle.cpp b/util/test/demos/gl/gl_simple_triangle.cpp index bb014eccb..297bef49a 100644 --- a/util/test/demos/gl/gl_simple_triangle.cpp +++ b/util/test/demos/gl/gl_simple_triangle.cpp @@ -52,17 +52,16 @@ RD_TEST(GL_Simple_Triangle, OpenGLGraphicsTest) glBindTexture(GL_TEXTURE_2D, tex); glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA32F, 4, 4); - float col[] = {0.8f, 0.2f, 0.9f, 1.0f}; + float col[] = {0.2f, 0.2f, 0.2f, 1.0f}; float textureColourData[4 * 4 * 4]; - for(auto i = 0; i < 4 * 4; ++i) + for(int i = 0; i < 4 * 4; ++i) { - for(auto c = 0; c < 4; ++c) + for(int c = 0; c < 4; ++c) textureColourData[i * 4 + c] = col[c]; } while(Running()) { - float col[] = {0.2f, 0.2f, 0.2f, 1.0f}; glClearBufferfv(GL_COLOR, 0, col); glBindTexture(GL_TEXTURE_2D, tex);