GL_MESA_pack_invert
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: pixel.c,v 1.35 2002/09/21 16:51:25 brianp Exp $ */
|
||||
/* $Id: pixel.c,v 1.36 2002/09/21 17:34:56 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
@@ -146,6 +146,17 @@ _mesa_PixelStorei( GLenum pname, GLint param )
|
||||
FLUSH_VERTICES(ctx, _NEW_PACKUNPACK);
|
||||
ctx->Pack.Alignment = param;
|
||||
break;
|
||||
case GL_PACK_INVERT_MESA:
|
||||
if (!ctx->Extensions.MESA_pack_invert) {
|
||||
_mesa_error( ctx, GL_INVALID_ENUM, "glPixelstore(pname)" );
|
||||
return;
|
||||
}
|
||||
if (ctx->Pack.Invert == param)
|
||||
return;
|
||||
FLUSH_VERTICES(ctx, _NEW_PACKUNPACK);
|
||||
ctx->Pack.Invert = param;
|
||||
break;
|
||||
|
||||
case GL_UNPACK_SWAP_BYTES:
|
||||
if (param == (GLint)ctx->Unpack.SwapBytes)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user