summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-02 21:10:22 -0600
committerBrian Paul <brianp@vmware.com>2009-09-02 21:13:02 -0600
commit85d09242a3dc6de7a0bdf31927b91b5487d5f98a (patch)
tree11dfc57102a497fa011ff7a7b75191e15514f47f
parentf378bdc535140db5f8ab3af6a203f500191d88c9 (diff)
pbo: add missing texture disable and glColor calls
We were getting lucky before. When debugging, disabling some of the sub-tests caused later tests to fail because of mis-set state.
-rw-r--r--src/glean/tpbo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glean/tpbo.cpp b/src/glean/tpbo.cpp
index f2ac7a8..034c975 100644
--- a/src/glean/tpbo.cpp
+++ b/src/glean/tpbo.cpp
@@ -765,6 +765,7 @@ bool PBOTest::testTexImage(void)
glTexCoord2f(0, 1);
glVertex2f(0, TEXSIZE);
glEnd();
+ glDisable(GL_TEXTURE_2D);
glReadPixels(0, 0, windowSize, windowSize, GL_RGB, GL_FLOAT,
buf);
@@ -1008,6 +1009,7 @@ bool PBOTest::testPolygonStip(void)
}
glEnable(GL_POLYGON_STIPPLE);
+ glColor4f(1.0, 1.0, 1.0, 0.0);
glBegin(GL_POLYGON);
glVertex2f(0, 0);
glVertex2f(10, 0);