Mesa (master): Enable GL_NV_fragment_program_option for software rendering

Ian Romanick idr at kemper.freedesktop.org
Sat Sep 26 00:02:15 UTC 2009


Module: Mesa
Branch: master
Commit: 5db8ebb8f534907614247afaf1dd8621b2d0462e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5db8ebb8f534907614247afaf1dd8621b2d0462e

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu Sep  3 14:06:42 2009 -0700

Enable GL_NV_fragment_program_option for software rendering

At this point the extension is not fully implemented.

---

 src/mesa/drivers/dri/swrast/swrast.c |    1 +
 src/mesa/main/extensions.c           |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c
index 3aa7843..d8de5cc 100644
--- a/src/mesa/drivers/dri/swrast/swrast.c
+++ b/src/mesa/drivers/dri/swrast/swrast.c
@@ -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 }
 };
 
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 903da99..c6f5068 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -306,6 +306,9 @@ _mesa_enable_sw_extensions(GLcontext *ctx)
 #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;
    ctx->Extensions.SGI_texture_color_table = GL_TRUE;




More information about the mesa-commit mailing list