From 9875f14ad4cb977fb3b6460704b29d4949fcb81b Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Tue, 25 Jul 2017 23:32:50 +1000 Subject: 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. --- video/out/opengl/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') 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; -- cgit v1.2.3