From 8c51eb8239247c98057eb9daf06c905a1dc0588c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 19 Oct 2013 16:10:53 -0600 Subject: [PATCH] Remove redundant dispatch->glEnable(GL_TEXTURE_2D) The same call was already made a few lines earlier. Reviewed-by: Zhigang Gong --- glamor/glamor_putimage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glamor/glamor_putimage.c b/glamor/glamor_putimage.c index 6567f14..99f7ac6 100644 --- a/glamor/glamor_putimage.c +++ b/glamor/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 -- 2.7.4