Fix compile and code style errors in GL_Simple_Triangle

This commit is contained in:
baldurk
2021-03-15 09:58:57 +00:00
parent faa9dbf709
commit 7a8b4a4664
+3 -4
View File
@@ -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);