projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8c0946
)
gallium: init ctx->Const.MaxTextureUnits
author
Brian
<brian.paul@tungstengraphics.com>
Tue, 1 Apr 2008 17:28:01 +0000
(11:28 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Tue, 1 Apr 2008 17:28:01 +0000
(11:28 -0600)
src/mesa/state_tracker/st_extensions.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_extensions.c
b/src/mesa/state_tracker/st_extensions.c
index 7fab4d041d0aecb1a2d8cdf967c0d55faae8d61a..20f4652413d75df3766b7269002a513a3cd173f2 100644
(file)
--- a/
src/mesa/state_tracker/st_extensions.c
+++ b/
src/mesa/state_tracker/st_extensions.c
@@
-83,7
+83,8
@@
void st_init_limits(struct st_context *st)
c->MaxTextureRectSize
= min(1 << (c->MaxTextureLevels - 1), MAX_TEXTURE_RECT_SIZE);
- c->MaxTextureImageUnits
+ c->MaxTextureUnits
+ = c->MaxTextureImageUnits
= c->MaxTextureCoordUnits
= min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS),
MAX_TEXTURE_IMAGE_UNITS);