# HG changeset patch # User reimar # Date 1149506631 0 # Node ID ebf4f7aa000ffc58afe7bde2a033c1bcc8d22be1 # Parent 7a839270427cbc2e08d83b73cbba2175b55db185 more GL extension checks to avoid crashes with Mesa (those crashes are against OpenGL spec though). diff -r 7a839270427c -r ebf4f7aa000f libvo/gl_common.c --- a/libvo/gl_common.c Mon Jun 05 11:20:31 2006 +0000 +++ b/libvo/gl_common.c Mon Jun 05 11:23:51 2006 +0000 @@ -259,24 +259,24 @@ {(void **)&MapBuffer, NULL, {"glMapBuffer", "glMapBufferARB", NULL}}, {(void **)&UnmapBuffer, NULL, {"glUnmapBuffer", "glUnmapBufferARB", NULL}}, {(void **)&BufferData, NULL, {"glBufferData", "glBufferDataARB", NULL}}, - {(void **)&CombinerParameterfv, NULL, {"glCombinerParameterfv", "glCombinerParameterfvNV", NULL}}, - {(void **)&CombinerParameteri, NULL, {"glCombinerParameteri", "glCombinerParameteriNV", NULL}}, - {(void **)&CombinerInput, NULL, {"glCombinerInput", "glCombinerInputNV", NULL}}, - {(void **)&CombinerOutput, NULL, {"glCombinerOutput", "glCombinerOutputNV", NULL}}, - {(void **)&BeginFragmentShader, NULL, {"glBeginFragmentShaderATI", NULL}}, - {(void **)&EndFragmentShader, NULL, {"glEndFragmentShaderATI", NULL}}, - {(void **)&SampleMap, NULL, {"glSampleMapATI", NULL}}, - {(void **)&ColorFragmentOp2, NULL, {"glColorFragmentOp2ATI", NULL}}, - {(void **)&ColorFragmentOp3, NULL, {"glColorFragmentOp3ATI", NULL}}, - {(void **)&SetFragmentShaderConstant, NULL, {"glSetFragmentShaderConstantATI", NULL}}, + {(void **)&CombinerParameterfv, "NV_register_combiners", {"glCombinerParameterfv", "glCombinerParameterfvNV", NULL}}, + {(void **)&CombinerParameteri, "NV_register_combiners", {"glCombinerParameteri", "glCombinerParameteriNV", NULL}}, + {(void **)&CombinerInput, "NV_register_combiners", {"glCombinerInput", "glCombinerInputNV", NULL}}, + {(void **)&CombinerOutput, "NV_register_combiners", {"glCombinerOutput", "glCombinerOutputNV", NULL}}, + {(void **)&BeginFragmentShader, "ATI_fragment_shader", {"glBeginFragmentShaderATI", NULL}}, + {(void **)&EndFragmentShader, "ATI_fragment_shader", {"glEndFragmentShaderATI", NULL}}, + {(void **)&SampleMap, "ATI_fragment_shader", {"glSampleMapATI", NULL}}, + {(void **)&ColorFragmentOp2, "ATI_fragment_shader", {"glColorFragmentOp2ATI", NULL}}, + {(void **)&ColorFragmentOp3, "ATI_fragment_shader", {"glColorFragmentOp3ATI", NULL}}, + {(void **)&SetFragmentShaderConstant, "ATI_fragment_shader", {"glSetFragmentShaderConstantATI", NULL}}, {(void **)&ActiveTexture, NULL, {"glActiveTexture", "glActiveTextureARB", NULL}}, {(void **)&BindTexture, NULL, {"glBindTexture", "glBindTextureARB", "glBindTextureEXT", NULL}}, {(void **)&MultiTexCoord2f, NULL, {"glMultiTexCoord2f", "glMultiTexCoord2fARB", NULL}}, - {(void **)&GenPrograms, NULL, {"glGenPrograms", "glGenProgramsARB", "glGenProgramsNV", NULL}}, - {(void **)&DeletePrograms, NULL, {"glDeletePrograms", "glDeleteProgramsARB", "glDeleteProgramsNV", NULL}}, - {(void **)&BindProgram, NULL, {"glBindProgram", "glBindProgramARB", "glBindProgramNV", NULL}}, - {(void **)&ProgramString, NULL, {"glProgramString", "glProgramStringARB", "glProgramStringNV", NULL}}, - {(void **)&ProgramEnvParameter4f, NULL, {"glProgramEnvParameter4f", "glProgramEnvParameter4fARB", "glProgramEnvParameter4fNV", NULL}}, + {(void **)&GenPrograms, "_program", {"glGenPrograms", "glGenProgramsARB", "glGenProgramsNV", NULL}}, + {(void **)&DeletePrograms, "_program", {"glDeletePrograms", "glDeleteProgramsARB", "glDeleteProgramsNV", NULL}}, + {(void **)&BindProgram, "_program", {"glBindProgram", "glBindProgramARB", "glBindProgramNV", NULL}}, + {(void **)&ProgramString, "_program", {"glProgramString", "glProgramStringARB", "glProgramStringNV", NULL}}, + {(void **)&ProgramEnvParameter4f, "_program", {"glProgramEnvParameter4f", "glProgramEnvParameter4fARB", "glProgramEnvParameter4fNV", NULL}}, {(void **)&SwapInterval, "_swap_control", {"glXSwapInterval", "glXSwapIntervalEXT", "glXSwapIntervalSGI", "wglSwapInterval", "wglSwapIntervalEXT", "wglSwapIntervalSGI", NULL}}, {NULL} };