summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/config.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-12-10 10:03:16 -0800
committerEric Anholt <eric@anholt.net>2009-12-10 10:05:31 -0800
commitcb640c8d40c4ee34160a14d646c244f44a5013f6 (patch)
treeb30aa0ce5695864bca02033084389b928f6771d1 /src/mesa/main/config.h
parent51e945ec9c0b803f5e998f87449fb02a7c39ae65 (diff)
downloadexternal_mesa3d-cb640c8d40c4ee34160a14d646c244f44a5013f6.zip
external_mesa3d-cb640c8d40c4ee34160a14d646c244f44a5013f6.tar.gz
external_mesa3d-cb640c8d40c4ee34160a14d646c244f44a5013f6.tar.bz2
mesa: Fix default (swrast) GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS.
The swrast pipeline shouldn't have any problem with all the frag and vert textures being bound at the same time. Note that this may result in DRI drivers that don't set this limit having an improbable return (fragment + vertex < combined), but it seems like it shouldn't cause problems for apps.
Diffstat (limited to 'src/mesa/main/config.h')
-rw-r--r--src/mesa/main/config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
index c504897..2eac1cc 100644
--- a/src/mesa/main/config.h
+++ b/src/mesa/main/config.h
@@ -243,7 +243,8 @@
/*@{*/
#define MAX_VERTEX_GENERIC_ATTRIBS 16
#define MAX_VERTEX_TEXTURE_IMAGE_UNITS MAX_TEXTURE_IMAGE_UNITS
-#define MAX_COMBINED_TEXTURE_IMAGE_UNITS MAX_TEXTURE_IMAGE_UNITS
+#define MAX_COMBINED_TEXTURE_IMAGE_UNITS (MAX_VERTEX_TEXTURE_IMAGE_UNITS + \
+ MAX_TEXTURE_IMAGE_UNITS)
/*@}*/