aboutsummaryrefslogtreecommitdiffhomepage
path: root/video
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-11-06 14:01:01 +0100
committerGravatar wm4 <wm4@nowhere>2015-11-06 14:01:01 +0100
commit5f89ba707d9092d43461106396e3a79618531a7e (patch)
tree534e6032e8d1f48a960d5d4eeaf6e645f880aa46 /video
parentcfa4952f7cf424157eed60e30291336922776d53 (diff)
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.)
Diffstat (limited to 'video')
-rw-r--r--video/out/opengl/common.c6
1 files changed, 0 insertions, 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.