diff options
author | Eric Anholt <eric@anholt.net> | 2014-04-02 12:09:47 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-07-17 17:34:28 -0700 |
commit | db9bff5c389f96991df8d6c62df1174e62e937d3 (patch) | |
tree | 4d6d32a6857a61f9ea7a5da3d2c5a79c552cc2a7 /glamor | |
parent | 1140a89d7762540965ff865d154cb0528049066f (diff) |
glamor: Drop unnecessary glTexParameteri() in upload of texture data.
We're not drawing, and we're not initially setting up the texture for
later drawing.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glamor')
-rw-r--r-- | glamor/glamor_transfer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c index 4eea902ad..891415565 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); |