st/mesa: fix geometry shader max texture limit in state validation
authorMarek Olšák <maraeo@gmail.com>
Thu, 9 May 2013 11:33:11 +0000 (13:33 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 18 Jun 2014 22:14:00 +0000 (00:14 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_texture.c

index e2d26ee246ad028252c116e56a7a3ad90d701db3..f34a5986308cf37f0c6acd4ef053a1e88fca5d19 100644 (file)
@@ -434,7 +434,7 @@ update_geometry_textures(struct st_context *st)
       update_textures(st,
                       PIPE_SHADER_GEOMETRY,
                       &ctx->GeometryProgram._Current->Base,
-                      ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxTextureImageUnits,
+                      ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxTextureImageUnits,
                       st->state.sampler_views[PIPE_SHADER_GEOMETRY],
                       &st->state.num_sampler_views[PIPE_SHADER_GEOMETRY]);
    }