From 5f89ba707d9092d43461106396e3a79618531a7e Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 6 Nov 2015 14:01:01 +0100 Subject: vo_opengl: simplify function loader slightly We don't use any functions that have been deprecated in any later GL or GLES functions. (This is a leftover of vo_opengl_old support.) --- video/out/opengl/common.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index 3022922d82..34cf909cc5 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -83,9 +83,7 @@ struct gl_functions { const char *extension; // introduced with this extension in any version int provides; // bitfield of MPGL_CAP_* constants int ver_core; // introduced as required function - int ver_removed; // removed as required function (no replacement) int ver_es_core; // introduced as required GL ES function - int ver_es_removed; // removed as required function (no replacement) const struct gl_function *functions; }; @@ -410,10 +408,6 @@ void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n), const struct gl_functions *section = &gl_functions[n]; int version = gl->es ? gl->es : gl->version; int ver_core = gl->es ? section->ver_es_core : section->ver_core; - int ver_removed = gl->es ? section->ver_es_removed : section->ver_removed; - - if (ver_removed && version >= ver_removed) - continue; // NOTE: Function entrypoints can exist, even if they do not work. // We must always check extension strings and versions. -- cgit v1.2.3