- try to discover what texture is corrupt in tomreyn's fuzzer

This commit is contained in:
Mark Vejvoda 2011-01-11 22:34:01 +00:00
parent f5ef3157e2
commit d622c7bf7f
1 changed files with 1 additions and 1 deletions

View File

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