Improved error messages when canvas/image creation fails because the size is too big for the system

This commit is contained in:
Alex Szpakowski
2013-06-09 18:24:19 -03:00
parent 0a36c41ba0
commit d286f78ec7
5 changed files with 50 additions and 8 deletions
+8
View File
@@ -168,13 +168,21 @@ public:
**/
graphics::Image::Wrap getTextureWrap();
/**
* Returns the maximum supported width or height of a texture.
**/
int getMaxTextureSize() const;
private:
void initOpenGLFunctions();
void initMaxValues();
void createDefaultTexture();
bool contextInitialized;
float maxAnisotropy;
int maxTextureSize;
// Tracked OpenGL state.
struct