aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_texture.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-05-09 13:33:11 +0200
committerMarek Olšák <[email protected]>2014-06-19 00:14:00 +0200
commit0df3551bf43cbd37933464746670ff6814118f0d (patch)
treee32e19fa6cff88da72dba88d3dc9bea1c2cedfb1 /src/mesa/state_tracker/st_atom_texture.c
parentbb867e2f2f288ee89b7c299a0375957041ce6a0c (diff)
st/mesa: fix geometry shader max texture limit in state validation
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_texture.c')
-rw-r--r--src/mesa/state_tracker/st_atom_texture.c2
1 files changed, 1 insertions, 1 deletions
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]);
}