Images which are too large for the system they're loaded on use a checkerboard pattern instead of erroring

This commit is contained in:
Alex Szpakowski
2013-08-15 23:40:32 -03:00
parent ecd5330c57
commit 14ae39eec9
2 changed files with 62 additions and 18 deletions
+6
View File
@@ -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;