From: Paul Berry Date: Tue, 7 Jan 2014 17:00:02 +0000 (-0800) Subject: mesa/cs: Handle compute shaders in _mesa_use_program(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b34ae2e64fd29fd4cd1cf18f7dd09116e02dc96;p=mesa.git mesa/cs: Handle compute shaders in _mesa_use_program(). v2: do cs after the ordered pipeline stages for consistency. Reviewed-by: Matt Turner --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 519b2001981..987c48aff34 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -994,6 +994,7 @@ _mesa_use_program(struct gl_context *ctx, struct gl_shader_program *shProg) use_shader_program(ctx, GL_VERTEX_SHADER, shProg); use_shader_program(ctx, GL_GEOMETRY_SHADER_ARB, shProg); use_shader_program(ctx, GL_FRAGMENT_SHADER, shProg); + use_shader_program(ctx, GL_COMPUTE_SHADER, shProg); _mesa_active_program(ctx, shProg, "glUseProgram"); if (ctx->Driver.UseProgram)