mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix compile and code style errors in GL_Simple_Triangle
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user