src/osd/sdl/drawogl.c
| r5130 | r5131 | |
| 340 | 340 | |
| 341 | 341 | |
| 342 | 342 | // OGL 1.3 |
| 343 | #ifdef GL_ARB_multitexture |
| 344 | static PFNGLACTIVETEXTUREARBPROC pfn_glActiveTexture = NULL; |
| 345 | #else |
| 343 | 346 | static PFNGLACTIVETEXTUREPROC pfn_glActiveTexture = NULL; |
| 347 | #endif |
| 344 | 348 | |
| 345 | 349 | // VBO |
| 346 | 350 | static PFNGLGENBUFFERSPROC pfn_glGenBuffers = NULL; |
| r5130 | r5131 | |
| 1027 | 1031 | |
| 1028 | 1032 | if ( sdl->useglsl ) |
| 1029 | 1033 | { |
| 1034 | #ifdef GL_ARB_multitexture |
| 1035 | pfn_glActiveTexture = (PFNGLACTIVETEXTUREARBPROC) SDL_GL_GetProcAddress("glActiveTextureARB"); |
| 1036 | #else |
| 1030 | 1037 | pfn_glActiveTexture = (PFNGLACTIVETEXTUREPROC) SDL_GL_GetProcAddress("glActiveTexture"); |
| 1038 | #endif |
| 1031 | 1039 | if (!pfn_glActiveTexture) |
| 1032 | 1040 | { |
| 1033 | 1041 | if (_once) |
| 1034 | 1042 | { |
| 1035 | | mame_printf_warning("OpenGL: GLSL disabled, glActiveTexture not supported\n"); |
| 1043 | mame_printf_warning("OpenGL: GLSL disabled, glActiveTexture(ARB) not supported\n"); |
| 1036 | 1044 | } |
| 1037 | 1045 | sdl->useglsl = 0; |
| 1038 | 1046 | } |