mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Improved error messages when canvas/image creation fails because the size is too big for the system
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user