diff options
author | Keith Whitwell <[email protected]> | 2004-05-10 18:16:03 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2004-05-10 18:16:03 +0000 |
commit | 352d4dbfb24c65f327759c00c7db7d30a9482e35 (patch) | |
tree | cabc4ec120d77e991ec7fcb3e21baa3b26b0c282 /src/mesa/main/enable.c | |
parent | 39fe9a7fe38081d6f40c4bf388a132c583330912 (diff) |
Add EXT_vertex_cull support to mesa
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 64cc4d17ca7..25bb7938c01 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -290,6 +290,15 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) FLUSH_VERTICES(ctx, _NEW_POLYGON); ctx->Polygon.CullFlag = state; break; + + case GL_CULL_VERTEX_EXT: + CHECK_EXTENSION(EXT_cull_vertex, cap); + if (ctx->Transform.CullVertexFlag == state) + return; + FLUSH_VERTICES(ctx, _NEW_TRANSFORM); + ctx->Transform.CullVertexFlag = state; + break; + case GL_DEPTH_TEST: if (state && ctx->Visual.depthBits==0) { _mesa_warning(ctx,"glEnable(GL_DEPTH_TEST) but no depth buffer"); |