9 Feb
2017
9 Feb
'17
2:39 p.m.
2017-02-09 12:00 GMT+01:00 Józef Kucia <jkucia(a)codeweavers.com>:
+ shader_id = GL_EXTCALL(glCreateShader(GL_COMPUTE_SHADER)); + + shader_addline(buffer, "%s\n", shader_glsl_get_version_declaration(gl_info, ®_maps->shader_version)); + + shader_glsl_enable_extensions(buffer, gl_info); + if (gl_info->supported[ARB_COMPUTE_SHADER]) + shader_addline(buffer, "#extension GL_ARB_compute_shader : enable\n");
I don't know it for a fact but it seems weird to me that explicitly enabling the extension in the GLSL source is ever necessary, given that you just created the shader with GL_COMPUTE_SHADER anyway... FWIW the extension enable is not mentioned in the ARB_compute_shader spec.