summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossy@jrg.systems>2017-07-25 23:32:50 +1000
committerJames Ross-Gowan <rossy@jrg.systems>2017-07-26 08:02:03 +1000
commit9875f14ad4cb977fb3b6460704b29d4949fcb81b (patch)
tree73fae68a3801a6a2517ff8108a0e4c5a3480d181
parent49a648447ffae91a3bf6e46abe861bedf8baa546 (diff)
downloadmpv-9875f14ad4cb977fb3b6460704b29d4949fcb81b.tar.bz2
mpv-9875f14ad4cb977fb3b6460704b29d4949fcb81b.tar.xz
vo_opengl: fix image uniforms for older OpenGL
This explicitly enables the GL_ARB_shader_image_load_store extension, which seems to fix compute shaders for Intel/GL 3.0.
-rw-r--r--video/out/opengl/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c
index d6dac42195..8c52b61cba 100644
--- a/video/out/opengl/utils.c
+++ b/video/out/opengl/utils.c
@@ -759,6 +759,8 @@ static const char *mp_image2D_type(GLenum access)
void gl_sc_uniform_image2D(struct gl_shader_cache *sc, char *name, GLuint texture,
GLuint iformat, GLenum access)
{
+ gl_sc_enable_extension(sc, "GL_ARB_shader_image_load_store");
+
struct sc_uniform *u = find_uniform(sc, name);
u->type = UT_i;
u->size = 1;