From: Marek Olšák Date: Thu, 9 May 2013 11:33:11 +0000 (+0200) Subject: st/mesa: fix geometry shader max texture limit in state validation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0df3551bf43cbd37933464746670ff6814118f0d;p=mesa.git st/mesa: fix geometry shader max texture limit in state validation Reviewed-by: Brian Paul --- diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c index e2d26ee246a..f34a5986308 100644 --- a/src/mesa/state_tracker/st_atom_texture.c +++ b/src/mesa/state_tracker/st_atom_texture.c @@ -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]); }