Commit 07fd0582 authored by Luca Barbieri's avatar Luca Barbieri Committed by Marek Olšák

texgen: read pixels from back buffer instead of the front buffer

Reading from the front buffer causes the test to fail for me.

This may be a bug, but it's definitely unrelated to the goal of this
test.
parent 12debf7d
......@@ -81,13 +81,12 @@ static void test_sanity(void)
glVertex2f(0, 1);
glEnd();
glutSwapBuffers();
glReadBuffer(GL_FRONT);
for(y = 0; y < 4; ++y) {
for(x = 0; x < 4; ++x)
probe_cell("test_sanity", x, y, TextureData[y][x]);
}
glutSwapBuffers();
}
static void do_test_texgen_eye(const char* testname)
......@@ -141,13 +140,12 @@ static void do_test_texgen_eye(const char* testname)
glDisable(GL_TEXTURE_GEN_S);
glutSwapBuffers();
glReadBuffer(GL_FRONT);
for(y = 0; y < 2; ++y) {
for(x = 0; x < 2; ++x)
probe_cell(testname, x, y, TextureData[y+1][x+1]);
}
glutSwapBuffers();
}
static void test_texgen_eye(void)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment