Enable GL_NV_fragment_program_option for software rendering
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 3 Sep 2009 21:06:42 +0000 (14:06 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 3 Sep 2009 21:07:07 +0000 (14:07 -0700)
At this point the extension is not fully implemented.

src/mesa/drivers/dri/swrast/swrast.c
src/mesa/main/extensions.c

index 3aa7843b1bc8e7af9af9b32b54608bb63e88481e..d8de5cca808e6ecce2d8d80d8df8459903683e9b 100644 (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 }
 };
 
index 903da99ed0c4b51e254cf184d7b4b9210642a927..c6f5068685b8052c861ddaade8431822b553c81c 100644 (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;