mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Use a more descriptive error message if love.graphics.newImage fails because the OpenGL texture can't be created.
This commit is contained in:
@@ -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 &)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user