[Piglit] [PATCH 1/4] framework: Don't leave a texture bound in the FBO path.

Eric Anholt eric at anholt.net
Wed Oct 5 12:59:29 PDT 2011


I was relying on this being the case in the new mipmap test.
---
 tests/util/piglit-framework.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/util/piglit-framework.c b/tests/util/piglit-framework.c
index 8f81c1a..262d1e8 100644
--- a/tests/util/piglit-framework.c
+++ b/tests/util/piglit-framework.c
@@ -200,6 +200,8 @@ piglit_framework_fbo_init()
 				       0);
 	}
 
+	glBindTexture(GL_TEXTURE_2D, 0);
+
 	status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
 	if (status != GL_FRAMEBUFFER_COMPLETE) {
 		fprintf(stderr,
-- 
1.7.6.3



More information about the Piglit mailing list