Enable GL_NV_fragment_program_option for software rendering

At this point the extension is not fully implemented.
This commit is contained in:
Ian Romanick
2009-09-03 14:06:42 -07:00
parent b8e389bb03
commit 5db8ebb8f5
2 changed files with 4 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ const struct dri_extension card_extensions[] =
{ "GL_MESA_resize_buffers", GL_MESA_resize_buffers_functions },
{ "GL_NV_vertex_program", GL_NV_vertex_program_functions },
{ "GL_NV_fragment_program", GL_NV_fragment_program_functions },
{ "GL_NV_fragment_program_option", NULL },
{ NULL, NULL }
};

View File

@@ -305,6 +305,9 @@ _mesa_enable_sw_extensions(GLcontext *ctx)
#endif
#if FEATURE_NV_fragment_program
ctx->Extensions.NV_fragment_program = GL_TRUE;
#endif
#if FEATURE_NV_fragment_program && FEATURE_ARB_fragment_program
ctx->Extensions.NV_fragment_program_option = GL_TRUE;
#endif
ctx->Extensions.SGI_color_matrix = GL_TRUE;
ctx->Extensions.SGI_color_table = GL_TRUE;