[Piglit] [PATCH] s3tc-errors: fix bad call to glPixelStorei()
Brian Paul
brianp at vmware.com
Wed Nov 20 10:11:52 PST 2013
Passing a negative value for GL_UNPACK_SKIP_PIXELS raises a GL error
that we don't want. Just pass 0 for both SKIP_PIXELS and SKIP_ROWS.
---
tests/texturing/s3tc-errors.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/texturing/s3tc-errors.c b/tests/texturing/s3tc-errors.c
index d8c903e..5109697 100644
--- a/tests/texturing/s3tc-errors.c
+++ b/tests/texturing/s3tc-errors.c
@@ -233,8 +233,8 @@ test_format(int width, int height, GLfloat *image, GLenum format)
y = 8;
w = 4;
h = 4;
- glPixelStorei(GL_UNPACK_SKIP_PIXELS, x);
- glPixelStorei(GL_UNPACK_SKIP_ROWS, y);
+ glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+ glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
glCompressedTexSubImage2D(GL_TEXTURE_2D, 0,
x, y, w, h,
format,
--
1.7.10.4
More information about the Piglit
mailing list