diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-02 21:10:22 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-02 21:13:02 -0600 |
commit | 85d09242a3dc6de7a0bdf31927b91b5487d5f98a (patch) | |
tree | 11dfc57102a497fa011ff7a7b75191e15514f47f | |
parent | f378bdc535140db5f8ab3af6a203f500191d88c9 (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.cpp | 2 |
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); |