mesa: enable GL_ARB_fragment_coord_conventions for sw drivers
authorBrian Paul <brianp@vmware.com>
Sat, 13 Feb 2010 21:02:54 +0000 (14:02 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 13 Feb 2010 21:03:02 +0000 (14:03 -0700)
This extension is now implemented in the GLSL compiler so it can be
enabled by other drivers where applicable.

src/mesa/main/extensions.c

index 6ac95957e6b18af49b82d18b7a904956598d65fc..87c1fac28a0b8e8db6d016f4972fd2ff7c5d6ded 100644 (file)
@@ -50,8 +50,7 @@ static const struct {
    { OFF, "GL_ARB_depth_clamp",                F(ARB_depth_clamp) },
    { ON,  "GL_ARB_draw_buffers",               F(ARB_draw_buffers) },
    { OFF, "GL_ARB_draw_elements_base_vertex",  F(ARB_draw_elements_base_vertex) },
-   /* TODO: uncomment the following line once GLSL layout(...) support is implemented */
-   /* { OFF, "GL_ARB_fragment_coord_conventions", F(ARB_fragment_coord_conventions) }, */
+   { OFF, "GL_ARB_fragment_coord_conventions", F(ARB_fragment_coord_conventions) },
    { OFF, "GL_ARB_fragment_program",           F(ARB_fragment_program) },
    { OFF, "GL_ARB_fragment_program_shadow",    F(ARB_fragment_program_shadow) },
    { OFF, "GL_ARB_fragment_shader",            F(ARB_fragment_shader) },
@@ -212,6 +211,7 @@ _mesa_enable_sw_extensions(GLcontext *ctx)
    ctx->Extensions.ARB_depth_texture = GL_TRUE;
    /*ctx->Extensions.ARB_draw_buffers = GL_TRUE;*/
    ctx->Extensions.ARB_draw_elements_base_vertex = GL_TRUE;
+   ctx->Extensions.ARB_fragment_coord_conventions = GL_TRUE;
 #if FEATURE_ARB_fragment_program
    ctx->Extensions.ARB_fragment_program = GL_TRUE;
    ctx->Extensions.ARB_fragment_program_shadow = GL_TRUE;