summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_context.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-05-13 16:24:57 +0200
committerMarek Olšák <[email protected]>2013-05-28 13:05:30 +0200
commitb4cb857dbfeb89d56ac0eb67ba1d7d5f65e336d4 (patch)
treee78923c5b0f555737166db8254869f810941b6e8 /src/mesa/swrast/s_context.h
parent15a4b6db2192b0adc05c3dc07cf043316c556f2e (diff)
swrast: increase array size of TextureSample
to match the size of ctx->Texture.Unit, and it will also fix piglit/max-samplers with the following commit. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_context.h')
-rw-r--r--src/mesa/swrast/s_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_context.h b/src/mesa/swrast/s_context.h
index 3d3f6365f12..9520185b202 100644
--- a/src/mesa/swrast/s_context.h
+++ b/src/mesa/swrast/s_context.h
@@ -313,7 +313,7 @@ typedef struct
/** Internal hooks, kept up to date by the same mechanism as above.
*/
blend_func BlendFunc;
- texture_sample_func TextureSample[MAX_TEXTURE_IMAGE_UNITS];
+ texture_sample_func TextureSample[MAX_COMBINED_TEXTURE_IMAGE_UNITS];
/** Buffer for saving the sampled texture colors.
* Needed for GL_ARB_texture_env_crossbar implementation.