From 86ced3c70e4866b65a5c2f8376faef9b1668a79a Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 24 Feb 2013 15:02:56 -0400 Subject: [PATCH] Simplified the error message on image creation failure --- src/modules/graphics/opengl/Image.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/modules/graphics/opengl/Image.cpp b/src/modules/graphics/opengl/Image.cpp index b9cccc422..29c4deaf3 100644 --- a/src/modules/graphics/opengl/Image.cpp +++ b/src/modules/graphics/opengl/Image.cpp @@ -309,12 +309,7 @@ bool Image::loadVolatilePOT() data->getData()); if (glGetError() != GL_NO_ERROR) - { - if (p2width > width || p2height > height) - throw love::Exception("Cannot create image: padded size may be larger than the maximum supported on this system."); - else - throw love::Exception("Cannot create image: size may be larger than the maximum supported on this system."); - } + throw love::Exception("Cannot create image: size may be too large for this system."); mipmapsCreated = false; checkMipmapsCreated(); @@ -344,7 +339,7 @@ bool Image::loadVolatileNPOT() data->getData()); if (glGetError() != GL_NO_ERROR) - throw love::Exception("Cannot create image: size may be larger than the maximum supported on this system."); + throw love::Exception("Cannot create image: size may be too large for this system."); mipmapsCreated = false; checkMipmapsCreated();