[PATCH 3/4] glamor: Drop unnecessary glTexParameteri() in upload of texture data.

Eric Anholt eric at anholt.net
Sun Jun 15 22:28:42 PDT 2014


We're not drawing, and we're not initially setting up the texture for
later drawing.

Signed-off-by: Eric Anholt <eric at anholt.net>
---
 glamor/glamor_transfer.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c
index 4eea902..8914155 100644
--- a/glamor/glamor_transfer.c
+++ b/glamor/glamor_transfer.c
@@ -72,9 +72,6 @@ glamor_upload_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox,
 
     glamor_make_current(glamor_priv);
 
-    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
-    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
-
     glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
     glPixelStorei(GL_UNPACK_ROW_LENGTH, byte_stride / bytes_per_pixel);
 
-- 
2.0.0



More information about the xorg-devel mailing list