mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Images which are too large for the system they're loaded on use a checkerboard pattern instead of erroring
This commit is contained in:
@@ -146,6 +146,8 @@ public:
|
||||
private:
|
||||
|
||||
vertex *scaleNPOT(const vertex *v, size_t count) const;
|
||||
void uploadDefaultTexture();
|
||||
|
||||
void drawv(const Matrix &t, const vertex *v, GLsizei count = 4, GLenum mode = GL_QUADS, const uint16 *e = 0, GLsizei ecount = 0) const;
|
||||
|
||||
friend class Shader;
|
||||
@@ -180,6 +182,10 @@ private:
|
||||
// Whether this Image is using a compressed texture.
|
||||
bool compressed;
|
||||
|
||||
// True if the image wasn't able to be properly created and it had to fall
|
||||
// back to a default texture.
|
||||
bool usingDefaultTexture;
|
||||
|
||||
// The image's filter mode
|
||||
Image::Filter filter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user