swrast: Enable GL_EXT_stencil_two_side
authorIan Romanick <idr@freedesktop.org>
Fri, 9 Jan 2009 23:47:05 +0000 (15:47 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 23 Jan 2009 17:49:29 +0000 (09:49 -0800)
src/mesa/drivers/dri/swrast/swrast.c
src/mesa/main/extensions.c

index 15b57244dcdd9da81d944b38b57dc2a735788489..4197603871b8a0361e7374b58bbebd37858da17b 100644 (file)
@@ -72,6 +72,7 @@
 #define need_GL_EXT_framebuffer_blit
 #define need_GL_EXT_gpu_program_parameters
 #define need_GL_EXT_paletted_texture
+#define need_GL_EXT_stencil_two_side
 #define need_GL_IBM_multimode_draw_arrays
 #define need_GL_MESA_resize_buffers
 #define need_GL_NV_vertex_program
@@ -103,6 +104,7 @@ const struct dri_extension card_extensions[] =
     { "GL_EXT_framebuffer_blit",       GL_EXT_framebuffer_blit_functions },
     { "GL_EXT_gpu_program_parameters", GL_EXT_gpu_program_parameters_functions },
     { "GL_EXT_paletted_texture",       GL_EXT_paletted_texture_functions },
+    { "GL_EXT_stencil_two_side",       GL_EXT_stencil_two_side_functions },
     { "GL_IBM_multimode_draw_arrays",  GL_IBM_multimode_draw_arrays_functions },
     { "GL_MESA_resize_buffers",                GL_MESA_resize_buffers_functions },
     { "GL_NV_vertex_program",          GL_NV_vertex_program_functions },
index 188e01c8a4a376353a5ada072b32bb826e9af522..738fda34ddb3cf24643ed2756b3a2ffd1e1ff80d 100644 (file)
@@ -262,7 +262,7 @@ _mesa_enable_sw_extensions(GLcontext *ctx)
    ctx->Extensions.EXT_secondary_color = GL_TRUE;
    ctx->Extensions.EXT_shared_texture_palette = GL_TRUE;
    ctx->Extensions.EXT_stencil_wrap = GL_TRUE;
-   ctx->Extensions.EXT_stencil_two_side = GL_FALSE; /* obsolete */
+   ctx->Extensions.EXT_stencil_two_side = GL_TRUE;
    ctx->Extensions.EXT_texture_env_add = GL_TRUE;
    ctx->Extensions.EXT_texture_env_combine = GL_TRUE;
    ctx->Extensions.EXT_texture_env_dot3 = GL_TRUE;
@@ -410,7 +410,7 @@ _mesa_enable_2_0_extensions(GLcontext *ctx)
 #if FEATURE_ARB_shading_language_100
    ctx->Extensions.ARB_shading_language_100 = GL_TRUE;
 #endif
-   ctx->Extensions.EXT_stencil_two_side = GL_FALSE; /* obsolete */
+   ctx->Extensions.EXT_stencil_two_side = GL_TRUE;
 #if FEATURE_ARB_vertex_shader
    ctx->Extensions.ARB_vertex_shader = GL_TRUE;
 #endif