summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-10-19 20:09:29 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-10-19 20:09:29 +0000
commit534bc2e2a9b694c3e0fde9c317becf94cbb01764 (patch)
tree0a2c907171b8c31a4610802e7faeda73bb17439c
parent82960fbf6963bd4930467650cf5e084005a7737a (diff)
glPixelStore(GL_PACK/UNPACK_SKIP_IMAGES) wasn't handled correctly
-rw-r--r--src/mesa/main/pixel.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c
index 7d5d23ec504..9e9d4a16d51 100644
--- a/src/mesa/main/pixel.c
+++ b/src/mesa/main/pixel.c
@@ -1,4 +1,4 @@
-/* $Id: pixel.c,v 1.11 2000/05/07 20:41:30 brianp Exp $ */
+/* $Id: pixel.c,v 1.11.4.1 2000/10/19 20:09:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -105,6 +105,14 @@ _mesa_PixelStorei( GLenum pname, GLint param )
ctx->Pack.SkipRows = param;
}
break;
+ case GL_PACK_SKIP_IMAGES:
+ if (param<0) {
+ gl_error( ctx, GL_INVALID_VALUE, "glPixelStore(param)" );
+ }
+ else {
+ ctx->Pack.SkipImages = param;
+ }
+ break;
case GL_PACK_ALIGNMENT:
if (param==1 || param==2 || param==4 || param==8) {
ctx->Pack.Alignment = param;
@@ -149,6 +157,14 @@ _mesa_PixelStorei( GLenum pname, GLint param )
ctx->Unpack.SkipRows = param;
}
break;
+ case GL_UNPACK_SKIP_IMAGES:
+ if (param < 0) {
+ gl_error( ctx, GL_INVALID_VALUE, "glPixelStore(param)" );
+ }
+ else {
+ ctx->Unpack.SkipImages = param;
+ }
+ break;
case GL_UNPACK_ALIGNMENT:
if (param==1 || param==2 || param==4 || param==8) {
ctx->Unpack.Alignment = param;