Remove redundant dispatch->glEnable(GL_TEXTURE_2D)
authorBrian Paul <brianp@vmware.com>
Sat, 19 Oct 2013 22:10:53 +0000 (16:10 -0600)
committerEric Anholt <eric@anholt.net>
Wed, 18 Dec 2013 19:23:54 +0000 (11:23 -0800)
The same call was already made a few lines earlier.

Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
glamor/glamor_putimage.c

index 6567f14..99f7ac6 100644 (file)
@@ -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