[Mesa-dev] [PATCH 22/23] mesa: remove STENCIL_BITS use

Brian Paul brian.e.paul at gmail.com
Mon Feb 20 12:15:10 PST 2012


From: Brian Paul <brianp at vmware.com>

---
 src/mesa/main/context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 754d313..d29f8a9 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -268,7 +268,7 @@ _mesa_initialize_visual( struct gl_config *vis,
    if (depthBits < 0 || depthBits > 32) {
       return GL_FALSE;
    }
-   if (stencilBits < 0 || stencilBits > STENCIL_BITS) {
+   if (stencilBits < 0 || stencilBits > 8) {
       return GL_FALSE;
    }
    assert(accumRedBits >= 0);
-- 
1.7.3.4



More information about the mesa-dev mailing list