aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get_gen.py
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-01-06 14:21:27 -0700
committerBrian Paul <[email protected]>2009-01-06 14:24:16 -0700
commit814bc5ccda51009327b6b5ff0fc2c088d537a636 (patch)
tree585e61f6fb3cdbe20a74809f68ec11b3347e7d4c /src/mesa/main/get_gen.py
parenta8ee35c1c59c23938e0a18b163515acc892ed407 (diff)
mesa: fix GL_DEPTH_CLEAR_VALUE casting
(cherry picked from commit d14d494dcda3d80ec2cf452551c680ffb432e306)
Diffstat (limited to 'src/mesa/main/get_gen.py')
-rw-r--r--src/mesa/main/get_gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get_gen.py b/src/mesa/main/get_gen.py
index 152e378b4fe..a191b045d33 100644
--- a/src/mesa/main/get_gen.py
+++ b/src/mesa/main/get_gen.py
@@ -180,7 +180,7 @@ StateVars = [
( "GL_DEPTH_BIAS", GLfloat, ["ctx->Pixel.DepthBias"], "", None ),
( "GL_DEPTH_BITS", GLint, ["ctx->DrawBuffer->Visual.depthBits"],
"", None ),
- ( "GL_DEPTH_CLEAR_VALUE", GLfloatN, ["ctx->Depth.Clear"], "", None ),
+ ( "GL_DEPTH_CLEAR_VALUE", GLfloatN, ["((GLfloat) ctx->Depth.Clear)"], "", None ),
( "GL_DEPTH_FUNC", GLenum, ["ctx->Depth.Func"], "", None ),
( "GL_DEPTH_RANGE", GLfloatN,
[ "ctx->Viewport.Near", "ctx->Viewport.Far" ], "", None ),