diff options
author | Ian Romanick <[email protected]> | 2005-08-10 23:39:42 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-08-10 23:39:42 +0000 |
commit | 1b8d0f149e0afac859c4c1e1e47772bb19da0187 (patch) | |
tree | 24b2e6cd16e3fd0deb2e436f67edff632ff8e8ed | |
parent | 8c9cd63c89923e7c3cb751a1f24038c199d226d8 (diff) |
Mesa uses the glVertexAttrib*NV functions to implement fixed-function
attributes in display lists. If a driver doesn't add entry points for
GL_NV_vertex_program, it will explode. This patch adds GL_NV_vertex_program
to the list of default extensions whose entry points are added by
driInitExtensions.
Thanks go to Roland Scheidegger for tracking the problem down and suggesting
the fix.
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 7ae7f284ee9..fbe1991fa5d 100644 --- a/src/mesa/drivers/dri/common/utils.c +++ b/src/mesa/drivers/dri/common/utils.c @@ -188,10 +188,12 @@ driGetRendererString( char * buffer, const char * hardware_name, #define need_GL_EXT_vertex_array #define need_GL_MESA_window_pos -/* This is needed in *all* drivers because Mesa internally implements - * glBlendFunc by calling glBlendFuncSeparateEXT. +/* These are needed in *all* drivers because Mesa internally implements + * certain functionality in terms of functions provided by these extensions. + * For example, glBlendFunc is implemented by calling glBlendFuncSeparateEXT. */ #define need_GL_EXT_blend_func_separate +#define need_GL_NV_vertex_program #include "extension_helper.h" @@ -205,6 +207,7 @@ static const struct dri_extension all_mesa_extensions[] = { { "GL_EXT_texture_object", GL_EXT_texture_object_functions }, { "GL_EXT_vertex_array", GL_EXT_vertex_array_functions }, { "GL_MESA_window_pos", GL_MESA_window_pos_functions }, + { "GL_NV_vertex_program", GL_NV_vertex_program_functions }, { NULL, NULL } }; |