Test implementation of proposed GL_EXT_shadow_funcs extension. This just
generalizes the R/texture comparision operators to include all eight of the depth test comparisons.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: texstate.c,v 1.65 2002/03/23 01:48:18 brianp Exp $ */
|
||||
/* $Id: texstate.c,v 1.66 2002/03/23 16:33:53 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
@@ -1125,6 +1125,16 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params )
|
||||
FLUSH_VERTICES(ctx, _NEW_TEXTURE);
|
||||
texObj->CompareFunc = params[0];
|
||||
}
|
||||
else if (ctx->Extensions.EXT_shadow_funcs &&
|
||||
(func == GL_EQUAL ||
|
||||
func == GL_NOTEQUAL ||
|
||||
func == GL_LESS ||
|
||||
func == GL_GREATER ||
|
||||
func == GL_ALWAYS ||
|
||||
func == GL_NEVER)) {
|
||||
FLUSH_VERTICES(ctx, _NEW_TEXTURE);
|
||||
texObj->CompareFunc = params[0];
|
||||
}
|
||||
else {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
"glTexParameter(bad GL_TEXTURE_COMPARE_FUNC_ARB)");
|
||||
|
Reference in New Issue
Block a user