- surface rendering is a step closer to using VBO's (code now works using Vertex Arrays, next stop Vertex Buffer Objects)

This commit is contained in:
Mark Vejvoda
2011-02-04 23:27:55 +00:00
parent 6ec92f2127
commit 1574e05fcd
3 changed files with 110 additions and 89 deletions

View File

@@ -157,7 +157,7 @@ void ModelRendererGl::renderMesh(Mesh *mesh) {
if(lastTexture != texture->getHandle()){
//assert(glIsTexture(texture->getHandle()));
//throw runtime_error("glIsTexture(texture->getHandle()) == false for texture: " + texture->getPath());
if(glIsTexture(texture->getHandle()) == true) {
if(glIsTexture(texture->getHandle()) == GL_TRUE) {
glBindTexture(GL_TEXTURE_2D, texture->getHandle());
lastTexture= texture->getHandle();
}