mesa/cs: Handle compute shaders in _mesa_use_program().
authorPaul Berry <stereotype441@gmail.com>
Tue, 7 Jan 2014 17:00:02 +0000 (09:00 -0800)
committerPaul Berry <stereotype441@gmail.com>
Wed, 5 Feb 2014 17:01:16 +0000 (09:01 -0800)
v2: do cs after the ordered pipeline stages for consistency.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/shaderapi.c

index 519b200198100b1461acad2179e9d6beb774a2c8..987c48aff34eca7e5d8553c1884ce0d8139da1ed 100644 (file)
@@ -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)