summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/utils.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-02 17:30:27 +0200
committerwm4 <wm4@nowhere>2017-10-02 17:30:27 +0200
commit0c04ce5f0d9c4fb7311edf0ae7bdf1eef0f61235 (patch)
tree8c205467cd0020a512f128e570f2da29d0f8d0f6 /video/out/opengl/utils.h
parent51985e3dd630a5fc212f643781b4a0ca7f590782 (diff)
downloadmpv-0c04ce5f0d9c4fb7311edf0ae7bdf1eef0f61235.tar.bz2
mpv-0c04ce5f0d9c4fb7311edf0ae7bdf1eef0f61235.tar.xz
vo_gpu: gl: implement proper extension string search
The existing code in check_ext() avoided false positive due to sub-strings, but allowed false negatives. Fix this with slightly better search code, and make it available as function to other source files. (There are some cases of strstr() still around.)
Diffstat (limited to 'video/out/opengl/utils.h')
-rw-r--r--video/out/opengl/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h
index 18cab476ed..53127e479e 100644
--- a/video/out/opengl/utils.h
+++ b/video/out/opengl/utils.h
@@ -51,4 +51,6 @@ void gl_vao_draw_data(struct gl_vao *vao, GLenum prim, void *ptr, size_t num);
void gl_set_debug_logger(GL *gl, struct mp_log *log);
+bool gl_check_extension(const char *extensions, const char *ext);
+
#endif