From 551b65f13754e6760e5c272ff86f8873c9c13e5c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 21 Sep 2002 17:34:56 +0000 Subject: GL_MESA_pack_invert --- src/mesa/main/pixel.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/pixel.c') diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c index 8522157304..ce1b2c57c2 100644 --- a/src/mesa/main/pixel.c +++ b/src/mesa/main/pixel.c @@ -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; -- cgit v1.2.3