OpenGL 2.0's two-sided stencil feature wasn't implemented correctly.
See comment near top of stencil.c for info about OpenGL 2.0 vs. GL_EXT_stencil_two_side.
This commit is contained in:
@@ -1070,26 +1070,31 @@ _mesa_PopAttrib(void)
|
|||||||
break;
|
break;
|
||||||
case GL_STENCIL_BUFFER_BIT:
|
case GL_STENCIL_BUFFER_BIT:
|
||||||
{
|
{
|
||||||
GLint face;
|
|
||||||
const struct gl_stencil_attrib *stencil;
|
const struct gl_stencil_attrib *stencil;
|
||||||
stencil = (const struct gl_stencil_attrib *) attr->data;
|
stencil = (const struct gl_stencil_attrib *) attr->data;
|
||||||
_mesa_set_enable(ctx, GL_STENCIL_TEST, stencil->Enabled);
|
_mesa_set_enable(ctx, GL_STENCIL_TEST, stencil->Enabled);
|
||||||
_mesa_ClearStencil(stencil->Clear);
|
_mesa_ClearStencil(stencil->Clear);
|
||||||
face = stencil->ActiveFace;
|
|
||||||
if (ctx->Extensions.EXT_stencil_two_side) {
|
if (ctx->Extensions.EXT_stencil_two_side) {
|
||||||
_mesa_set_enable(ctx, GL_STENCIL_TEST_TWO_SIDE_EXT, stencil->TestTwoSide);
|
_mesa_set_enable(ctx, GL_STENCIL_TEST_TWO_SIDE_EXT,
|
||||||
face ^= 1;
|
stencil->TestTwoSide);
|
||||||
|
_mesa_ActiveStencilFaceEXT(stencil->ActiveFace
|
||||||
|
? GL_BACK : GL_FRONT);
|
||||||
}
|
}
|
||||||
do {
|
/* front state */
|
||||||
_mesa_ActiveStencilFaceEXT(face);
|
_mesa_StencilFunc(stencil->Function[0], stencil->Ref[0],
|
||||||
_mesa_StencilFunc(stencil->Function[face], stencil->Ref[face],
|
stencil->ValueMask[0]);
|
||||||
stencil->ValueMask[face]);
|
_mesa_StencilMask(stencil->WriteMask[0]);
|
||||||
_mesa_StencilMask(stencil->WriteMask[face]);
|
_mesa_StencilOp(stencil->FailFunc[0],
|
||||||
_mesa_StencilOp(stencil->FailFunc[face],
|
stencil->ZFailFunc[0],
|
||||||
stencil->ZFailFunc[face],
|
stencil->ZPassFunc[0]);
|
||||||
stencil->ZPassFunc[face]);
|
/* back state */
|
||||||
face ^= 1;
|
_mesa_StencilFuncSeparate(GL_BACK, stencil->Function[1],
|
||||||
} while (face != (stencil->ActiveFace ^ 1));
|
stencil->Ref[1],
|
||||||
|
stencil->ValueMask[1]);
|
||||||
|
_mesa_StencilMaskSeparate(GL_BACK, stencil->WriteMask[1]);
|
||||||
|
_mesa_StencilOpSeparate(GL_BACK, stencil->FailFunc[1],
|
||||||
|
stencil->ZFailFunc[1],
|
||||||
|
stencil->ZPassFunc[1]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GL_TRANSFORM_BIT:
|
case GL_TRANSFORM_BIT:
|
||||||
|
@@ -376,7 +376,7 @@ _mesa_enable_2_0_extensions(GLcontext *ctx)
|
|||||||
#if 0 && FEATURE_ARB_shading_language_100
|
#if 0 && FEATURE_ARB_shading_language_100
|
||||||
ctx->Extensions.ARB_shading_language_100 = GL_TRUE;
|
ctx->Extensions.ARB_shading_language_100 = GL_TRUE;
|
||||||
#endif
|
#endif
|
||||||
ctx->Extensions.EXT_stencil_two_side = GL_TRUE;
|
ctx->Extensions.EXT_stencil_two_side = GL_FALSE; /* yes, turn it off */
|
||||||
#if 0 && FEATURE_ARB_vertex_shader
|
#if 0 && FEATURE_ARB_vertex_shader
|
||||||
ctx->Extensions.ARB_vertex_shader = GL_TRUE;
|
ctx->Extensions.ARB_vertex_shader = GL_TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1033,6 +1033,7 @@ struct gl_stencil_attrib
|
|||||||
GLboolean Enabled; /**< Enabled flag */
|
GLboolean Enabled; /**< Enabled flag */
|
||||||
GLboolean TestTwoSide; /**< GL_EXT_stencil_two_side */
|
GLboolean TestTwoSide; /**< GL_EXT_stencil_two_side */
|
||||||
GLubyte ActiveFace; /**< GL_EXT_stencil_two_side (0 or 1) */
|
GLubyte ActiveFace; /**< GL_EXT_stencil_two_side (0 or 1) */
|
||||||
|
GLboolean _TestTwoSide;
|
||||||
GLenum Function[2]; /**< Stencil function */
|
GLenum Function[2]; /**< Stencil function */
|
||||||
GLenum FailFunc[2]; /**< Fail function */
|
GLenum FailFunc[2]; /**< Fail function */
|
||||||
GLenum ZPassFunc[2]; /**< Depth buffer pass function */
|
GLenum ZPassFunc[2]; /**< Depth buffer pass function */
|
||||||
|
@@ -993,6 +993,9 @@ _mesa_update_state( GLcontext *ctx )
|
|||||||
if (new_state & _NEW_LIGHT)
|
if (new_state & _NEW_LIGHT)
|
||||||
_mesa_update_lighting( ctx );
|
_mesa_update_lighting( ctx );
|
||||||
|
|
||||||
|
if (new_state & _NEW_STENCIL)
|
||||||
|
_mesa_update_stencil( ctx );
|
||||||
|
|
||||||
if (new_state & _IMAGE_NEW_TRANSFER_STATE)
|
if (new_state & _IMAGE_NEW_TRANSFER_STATE)
|
||||||
_mesa_update_pixel( ctx, new_state );
|
_mesa_update_pixel( ctx, new_state );
|
||||||
|
|
||||||
|
@@ -1,8 +1,3 @@
|
|||||||
/**
|
|
||||||
* \file stencil.c
|
|
||||||
* Stencil operations.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 6.5
|
* Version: 6.5
|
||||||
@@ -28,6 +23,24 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file stencil.c
|
||||||
|
* Stencil operations.
|
||||||
|
*
|
||||||
|
* Note: There's an incompatibility between GL_EXT_stencil_two_side and
|
||||||
|
* OpenGL 2.0's two-sided stencil feature.
|
||||||
|
*
|
||||||
|
* With GL_EXT_stencil_two_side, calling glStencilOp/Func/Mask() only the
|
||||||
|
* front OR back face state (as set by glActiveStencilFaceEXT) is set.
|
||||||
|
*
|
||||||
|
* But with OpenGL 2.0, calling glStencilOp/Func/Mask() sets BOTH the
|
||||||
|
* front AND back state.
|
||||||
|
*
|
||||||
|
* So either we advertise the GL_EXT_stencil_two_side extension, or OpenGL
|
||||||
|
* 2.0, but not both.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "glheader.h"
|
#include "glheader.h"
|
||||||
#include "imports.h"
|
#include "imports.h"
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
@@ -60,7 +73,7 @@ _mesa_ClearStencil( GLint s )
|
|||||||
ctx->Stencil.Clear = (GLuint) s;
|
ctx->Stencil.Clear = (GLuint) s;
|
||||||
|
|
||||||
if (ctx->Driver.ClearStencil) {
|
if (ctx->Driver.ClearStencil) {
|
||||||
(*ctx->Driver.ClearStencil)( ctx, s );
|
ctx->Driver.ClearStencil( ctx, s );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,7 +95,6 @@ void GLAPIENTRY
|
|||||||
_mesa_StencilFunc( GLenum func, GLint ref, GLuint mask )
|
_mesa_StencilFunc( GLenum func, GLint ref, GLuint mask )
|
||||||
{
|
{
|
||||||
GET_CURRENT_CONTEXT(ctx);
|
GET_CURRENT_CONTEXT(ctx);
|
||||||
const GLint face = ctx->Stencil.ActiveFace;
|
|
||||||
GLint maxref;
|
GLint maxref;
|
||||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||||
|
|
||||||
@@ -104,18 +116,35 @@ _mesa_StencilFunc( GLenum func, GLint ref, GLuint mask )
|
|||||||
maxref = (1 << STENCIL_BITS) - 1;
|
maxref = (1 << STENCIL_BITS) - 1;
|
||||||
ref = CLAMP( ref, 0, maxref );
|
ref = CLAMP( ref, 0, maxref );
|
||||||
|
|
||||||
if (ctx->Stencil.Function[face] == func &&
|
if (ctx->Extensions.EXT_stencil_two_side) {
|
||||||
ctx->Stencil.ValueMask[face] == mask &&
|
/* only set active face state */
|
||||||
ctx->Stencil.Ref[face] == ref)
|
const GLint face = ctx->Stencil.ActiveFace;
|
||||||
return;
|
if (ctx->Stencil.Function[face] == func &&
|
||||||
|
ctx->Stencil.ValueMask[face] == mask &&
|
||||||
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
ctx->Stencil.Ref[face] == ref)
|
||||||
ctx->Stencil.Function[face] = func;
|
return;
|
||||||
ctx->Stencil.Ref[face] = ref;
|
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
||||||
ctx->Stencil.ValueMask[face] = mask;
|
ctx->Stencil.Function[face] = func;
|
||||||
|
ctx->Stencil.Ref[face] = ref;
|
||||||
|
ctx->Stencil.ValueMask[face] = mask;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* set both front and back state */
|
||||||
|
if (ctx->Stencil.Function[0] == func &&
|
||||||
|
ctx->Stencil.Function[1] == func &&
|
||||||
|
ctx->Stencil.ValueMask[0] == mask &&
|
||||||
|
ctx->Stencil.ValueMask[1] == mask &&
|
||||||
|
ctx->Stencil.Ref[0] == ref &&
|
||||||
|
ctx->Stencil.Ref[1] == ref)
|
||||||
|
return;
|
||||||
|
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
||||||
|
ctx->Stencil.Function[0] = ctx->Stencil.Function[1] = func;
|
||||||
|
ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref;
|
||||||
|
ctx->Stencil.ValueMask[0] = ctx->Stencil.ValueMask[1] = mask;
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->Driver.StencilFunc) {
|
if (ctx->Driver.StencilFunc) {
|
||||||
(*ctx->Driver.StencilFunc)( ctx, func, ref, mask );
|
ctx->Driver.StencilFunc( ctx, func, ref, mask );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,17 +164,27 @@ void GLAPIENTRY
|
|||||||
_mesa_StencilMask( GLuint mask )
|
_mesa_StencilMask( GLuint mask )
|
||||||
{
|
{
|
||||||
GET_CURRENT_CONTEXT(ctx);
|
GET_CURRENT_CONTEXT(ctx);
|
||||||
const GLint face = ctx->Stencil.ActiveFace;
|
|
||||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||||
|
|
||||||
if (ctx->Stencil.WriteMask[face] == mask)
|
if (ctx->Extensions.EXT_stencil_two_side) {
|
||||||
return;
|
/* only set active face state */
|
||||||
|
const GLint face = ctx->Stencil.ActiveFace;
|
||||||
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
if (ctx->Stencil.WriteMask[face] == mask)
|
||||||
ctx->Stencil.WriteMask[face] = mask;
|
return;
|
||||||
|
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
||||||
|
ctx->Stencil.WriteMask[face] = mask;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* set both front and back state */
|
||||||
|
if (ctx->Stencil.WriteMask[0] == mask &&
|
||||||
|
ctx->Stencil.WriteMask[1] == mask)
|
||||||
|
return;
|
||||||
|
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
||||||
|
ctx->Stencil.WriteMask[0] = ctx->Stencil.WriteMask[1] = mask;
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->Driver.StencilMask) {
|
if (ctx->Driver.StencilMask) {
|
||||||
(*ctx->Driver.StencilMask)( ctx, mask );
|
ctx->Driver.StencilMask( ctx, mask );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,7 +207,6 @@ void GLAPIENTRY
|
|||||||
_mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
|
_mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
|
||||||
{
|
{
|
||||||
GET_CURRENT_CONTEXT(ctx);
|
GET_CURRENT_CONTEXT(ctx);
|
||||||
const GLint face = ctx->Stencil.ActiveFace;
|
|
||||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||||
|
|
||||||
switch (fail) {
|
switch (fail) {
|
||||||
@@ -226,18 +264,35 @@ _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->Stencil.ZFailFunc[face] == zfail &&
|
if (ctx->Extensions.EXT_stencil_two_side) {
|
||||||
ctx->Stencil.ZPassFunc[face] == zpass &&
|
/* only set active face state */
|
||||||
ctx->Stencil.FailFunc[face] == fail)
|
const GLint face = ctx->Stencil.ActiveFace;
|
||||||
return;
|
if (ctx->Stencil.ZFailFunc[face] == zfail &&
|
||||||
|
ctx->Stencil.ZPassFunc[face] == zpass &&
|
||||||
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
ctx->Stencil.FailFunc[face] == fail)
|
||||||
ctx->Stencil.ZFailFunc[face] = zfail;
|
return;
|
||||||
ctx->Stencil.ZPassFunc[face] = zpass;
|
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
||||||
ctx->Stencil.FailFunc[face] = fail;
|
ctx->Stencil.ZFailFunc[face] = zfail;
|
||||||
|
ctx->Stencil.ZPassFunc[face] = zpass;
|
||||||
|
ctx->Stencil.FailFunc[face] = fail;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* set both front and back state */
|
||||||
|
if (ctx->Stencil.ZFailFunc[0] == zfail &&
|
||||||
|
ctx->Stencil.ZFailFunc[1] == zfail &&
|
||||||
|
ctx->Stencil.ZPassFunc[0] == zpass &&
|
||||||
|
ctx->Stencil.ZPassFunc[1] == zpass &&
|
||||||
|
ctx->Stencil.FailFunc[0] == fail &&
|
||||||
|
ctx->Stencil.FailFunc[1] == fail)
|
||||||
|
return;
|
||||||
|
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
||||||
|
ctx->Stencil.ZFailFunc[0] = ctx->Stencil.ZFailFunc[1] = zfail;
|
||||||
|
ctx->Stencil.ZPassFunc[0] = ctx->Stencil.ZPassFunc[1] = zpass;
|
||||||
|
ctx->Stencil.FailFunc[0] = ctx->Stencil.FailFunc[1] = fail;
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->Driver.StencilOp) {
|
if (ctx->Driver.StencilOp) {
|
||||||
(*ctx->Driver.StencilOp)(ctx, fail, zfail, zpass);
|
ctx->Driver.StencilOp(ctx, fail, zfail, zpass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -251,13 +306,22 @@ _mesa_ActiveStencilFaceEXT(GLenum face)
|
|||||||
GET_CURRENT_CONTEXT(ctx);
|
GET_CURRENT_CONTEXT(ctx);
|
||||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||||
|
|
||||||
|
if (!ctx->Extensions.EXT_stencil_two_side) {
|
||||||
|
_mesa_error(ctx, GL_INVALID_OPERATION, "glActiveStencilFaceEXT");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (face == GL_FRONT || face == GL_BACK) {
|
if (face == GL_FRONT || face == GL_BACK) {
|
||||||
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
FLUSH_VERTICES(ctx, _NEW_STENCIL);
|
||||||
ctx->Stencil.ActiveFace = (face == GL_FRONT) ? 0 : 1;
|
ctx->Stencil.ActiveFace = (face == GL_FRONT) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
_mesa_error(ctx, GL_INVALID_ENUM, "glActiveStencilFaceEXT(face)");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->Driver.ActiveStencilFace) {
|
if (ctx->Driver.ActiveStencilFace) {
|
||||||
(*ctx->Driver.ActiveStencilFace)( ctx, (GLuint) ctx->Stencil.ActiveFace );
|
ctx->Driver.ActiveStencilFace(ctx, (GLuint) ctx->Stencil.ActiveFace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -432,6 +496,28 @@ _mesa_StencilMaskSeparate(GLenum face, GLuint mask)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update derived stencil state.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
_mesa_update_stencil(GLcontext *ctx)
|
||||||
|
{
|
||||||
|
if (ctx->Extensions.EXT_stencil_two_side) {
|
||||||
|
ctx->Stencil._TestTwoSide = ctx->Stencil.TestTwoSide;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ctx->Stencil._TestTwoSide =
|
||||||
|
(ctx->Stencil.Function[0] != ctx->Stencil.Function[1] ||
|
||||||
|
ctx->Stencil.FailFunc[0] != ctx->Stencil.FailFunc[1] ||
|
||||||
|
ctx->Stencil.ZPassFunc[0] != ctx->Stencil.ZPassFunc[1] ||
|
||||||
|
ctx->Stencil.ZFailFunc[0] != ctx->Stencil.ZFailFunc[1] ||
|
||||||
|
ctx->Stencil.Ref[0] != ctx->Stencil.Ref[1] ||
|
||||||
|
ctx->Stencil.ValueMask[0] != ctx->Stencil.ValueMask[1] ||
|
||||||
|
ctx->Stencil.WriteMask[0] != ctx->Stencil.WriteMask[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the context stipple state.
|
* Initialize the context stipple state.
|
||||||
*
|
*
|
||||||
@@ -440,9 +526,8 @@ _mesa_StencilMaskSeparate(GLenum face, GLuint mask)
|
|||||||
* Initializes __GLcontextRec::Stencil attribute group.
|
* Initializes __GLcontextRec::Stencil attribute group.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
_mesa_init_stencil( GLcontext * ctx )
|
_mesa_init_stencil(GLcontext *ctx)
|
||||||
{
|
{
|
||||||
/* Stencil group */
|
|
||||||
ctx->Stencil.Enabled = GL_FALSE;
|
ctx->Stencil.Enabled = GL_FALSE;
|
||||||
ctx->Stencil.TestTwoSide = GL_FALSE;
|
ctx->Stencil.TestTwoSide = GL_FALSE;
|
||||||
ctx->Stencil.ActiveFace = 0; /* 0 = GL_FRONT, 1 = GL_BACK */
|
ctx->Stencil.ActiveFace = 0; /* 0 = GL_FRONT, 1 = GL_BACK */
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 6.3
|
* Version: 6.5
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
@@ -67,6 +67,10 @@ extern void GLAPIENTRY
|
|||||||
_mesa_StencilMaskSeparate(GLenum face, GLuint mask);
|
_mesa_StencilMaskSeparate(GLenum face, GLuint mask);
|
||||||
|
|
||||||
|
|
||||||
|
extern void
|
||||||
|
_mesa_update_stencil(GLcontext *ctx);
|
||||||
|
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
_mesa_init_stencil( GLcontext * ctx );
|
_mesa_init_stencil( GLcontext * ctx );
|
||||||
|
|
||||||
|
@@ -1004,7 +1004,7 @@ GLboolean
|
|||||||
_swrast_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span)
|
_swrast_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span)
|
||||||
{
|
{
|
||||||
/* span->facing can only be non-zero if using two-sided stencil */
|
/* span->facing can only be non-zero if using two-sided stencil */
|
||||||
ASSERT(ctx->Stencil.TestTwoSide || span->facing == 0);
|
ASSERT(ctx->Stencil._TestTwoSide || span->facing == 0);
|
||||||
if (span->arrayMask & SPAN_XY)
|
if (span->arrayMask & SPAN_XY)
|
||||||
return stencil_and_ztest_pixels(ctx, span, span->facing);
|
return stencil_and_ztest_pixels(ctx, span, span->facing);
|
||||||
else
|
else
|
||||||
|
@@ -299,7 +299,7 @@ void _swsetup_choose_trifuncs( GLcontext *ctx )
|
|||||||
*/
|
*/
|
||||||
if (ctx->Polygon.FrontMode != GL_FILL ||
|
if (ctx->Polygon.FrontMode != GL_FILL ||
|
||||||
ctx->Polygon.BackMode != GL_FILL ||
|
ctx->Polygon.BackMode != GL_FILL ||
|
||||||
(ctx->Stencil.Enabled && ctx->Stencil.TestTwoSide))
|
(ctx->Stencil.Enabled && ctx->Stencil._TestTwoSide))
|
||||||
ind |= SS_UNFILLED_BIT;
|
ind |= SS_UNFILLED_BIT;
|
||||||
|
|
||||||
if (ctx->Visual.rgbMode)
|
if (ctx->Visual.rgbMode)
|
||||||
|
Reference in New Issue
Block a user