From e34957940b5012dba23616469fb5aec56fcde5ee Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 21 Jan 2015 20:32:42 +0100 Subject: vo_opengl: cleanups after vo_opengl_old removal Don't load all the legacy functions (including ancient extensions). Slightly simplify function loader and context creation, now that legacy GL doesn't need to be handled. Remove the code for drawing OSD in legacy mode. Remove all the header hacks, which were meant for ancient OpenGL headers which didn't even support things like OpenGL 1.3. Instead, adjust the GLX check to make sure we get both OpenGL 3x and 2.1 symbols. For win32 and OSX, we assume that the user has the latest headers anyway. For wayland, we hope that things somehow go right. --- waftools/fragments/gl_x11.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'waftools') diff --git a/waftools/fragments/gl_x11.c b/waftools/fragments/gl_x11.c index 36f4ef1f09..53b82e46ba 100644 --- a/waftools/fragments/gl_x11.c +++ b/waftools/fragments/gl_x11.c @@ -9,5 +9,7 @@ int main(int argc, char *argv[]) { glXGetProcAddressARB(""); glXGetCurrentDisplay(); glFinish(); + (void)GL_RGB32F; // arbitrary OpenGL 3.0 symbol + (void)GL_LUMINANCE16; // arbitrary OpenGL legacy-only symbol return 0; } -- cgit v1.2.3