*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1577 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-01-16 21:56:40 +00:00
parent 47bcedd2ae
commit 5f6ca675a7
+5 -3
View File
@@ -369,13 +369,15 @@ void setuptmu(int n, const char *rgbfunc, const char *alphafunc)
void inittmus()
{
glGetIntegerv(GL_MAX_TEXTURE_SIZE, (GLint *)&hwtexsize);
GLint val;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &val);
hwtexsize = val;
if(hasTE && !hasMT) maxtmus = 1;
else if(hasTE && hasMT)
{
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, (GLint *)&maxtmus);
maxtmus = max(1, min(4, maxtmus));
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &val);
maxtmus = max(1, min(4, val));
loopi(maxtmus)
{
glActiveTexture_(GL_TEXTURE0_ARB+i);