Use a more descriptive error message if love.graphics.newImage fails because the OpenGL texture can't be created.

This commit is contained in:
Alex Szpakowski
2015-10-15 14:42:57 -03:00
parent d587c206f0
commit 890802c0a3
3 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ bool Image::loadVolatile()
GLenum glerr = glGetError();
if (glerr != GL_NO_ERROR)
throw love::Exception("Cannot create image (error code 0x%x)", glerr);
throw love::Exception("Cannot create image (OpenGL error: %s)", OpenGL::errorString(glerr));
}
catch (love::Exception &)
{