Fixed TexCoordPointer exception when ARB_multitexture is not available.

This commit is contained in:
Ioannis Tsakpinis 2009-09-27 12:05:46 +00:00
parent e11af72624
commit 0aa3bf8c17

View file

@ -62,7 +62,7 @@ class BaseReferences {
GL11.glGetInteger(GL13.GL_MAX_TEXTURE_UNITS, temp);
max_texture_units = temp.get(0);
} else
max_texture_units = 0;
max_texture_units = 1;
glTexCoordPointer_buffer = new Buffer[max_texture_units];
}