Hi,
If use indirect rendering, glx does not return the correct
STENCIL_BACK_* parameters. Below is the patch, if it is OK, please
commit in:
diff --git a/src/mesa/glapi/gl_API.xml b/src/mesa/glapi/gl_API.xml
index ef4a309..7eff99a 100644
--- a/src/mesa/glapi/gl_API.xml
+++ b/src/mesa/glapi/gl_API.xml
@@ -5114,9 +5114,15 @@
</enum>
<enum name="LOWER_LEFT" value="0x8CA1"/>
<enum name="UPPER_LEFT" value="0x8CA2"/>
- <enum name="STENCIL_BACK_REF" value="0x8CA3"/>
- <enum name="STENCIL_BACK_VALUE_MASK" value="0x8CA4"/>
- <enum name="STENCIL_BACK_WRITEMASK" value="0x8CA5"/>
+ <enum name="STENCIL_BACK_REF" count="1"
value="0x8CA3">
+ <size name="Get" mode="get"/>
+ </enum>
+ <enum name="STENCIL_BACK_VALUE_MASK" count="1"
value="0x8CA4">
+ <size name="Get" mode="get"/>
+ </enum>
+ <enum name="STENCIL_BACK_WRITEMASK" count="1"
value="0x8CA5">
+ <size name="Get" mode="get"/>
+ </enum>
<function name="BlendEquationSeparate"
alias="BlendEquationSeparateEXT">
<param name="modeRGB" type="GLenum"/>
diff --git a/GL/glx/indirect_size_get.c b/GL/glx/indirect_size_get.c
index f64fb7e..634279e 100644
--- a/GL/glx/indirect_size_get.c
+++ b/GL/glx/indirect_size_get.c
@@ -359,11 +359,14 @@ __glGetBooleanv_size(GLenum e)
case GL_STENCIL_CLEAR_VALUE:
case GL_STENCIL_FUNC:
case GL_STENCIL_VALUE_MASK:
+ case GL_STENCIL_BACK_VALUE_MASK:
case GL_STENCIL_FAIL:
case GL_STENCIL_PASS_DEPTH_FAIL:
case GL_STENCIL_PASS_DEPTH_PASS:
case GL_STENCIL_REF:
+ case GL_STENCIL_BACK_REF:
case GL_STENCIL_WRITEMASK:
+ case GL_STENCIL_BACK_WRITEMASK:
case GL_MATRIX_MODE:
case GL_NORMALIZE:
case GL_MODELVIEW_STACK_DEPTH:
Best Regards,
Nian Wu
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev