[Glamor] [PATCH 2/3] Remove redundant dispatch->glEnable(GL_TEXTURE_2D)

Brian Paul brian.e.paul at gmail.com
Sat Oct 19 15:10:53 PDT 2013


From: Brian Paul <brianp at vmware.com>

The same call was already made a few lines earlier.
---
 src/glamor_putimage.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/glamor_putimage.c b/src/glamor_putimage.c
index 6567f14..99f7ac6 100644
--- a/src/glamor_putimage.c
+++ b/src/glamor_putimage.c
@@ -181,7 +181,6 @@ glamor_put_image_xybitmap(DrawablePtr drawable, GCPtr gc,
 			       w, h, 0, GL_COLOR_INDEX, GL_BITMAP, bits);
 	dispatch->glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
 	dispatch->glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
-	dispatch->glEnable(GL_TEXTURE_2D);
 
 	/* Now that we've set up our bitmap texture and the shader, shove
 	 * the destination rectangle through the cliprects and run the
-- 
1.7.9.5



More information about the Glamor mailing list