Fixed lazy-loading of stencil buffers in Canvases sometimes failing due to uninitialized variables

This commit is contained in:
Alex Szpakowski
2013-07-16 20:04:10 -03:00
parent 259f15da6f
commit 3725b4122f
4 changed files with 33 additions and 30 deletions
+4 -4
View File
@@ -60,7 +60,7 @@ public:
void startGrab();
void stopGrab();
void clear(const Color &c);
void clear(Color c);
virtual void draw(float x, float y, float angle, float sx, float sy, float ox, float oy, float kx, float ky) const;
@@ -80,7 +80,7 @@ public:
const std::vector<Canvas *> &getAttachedCanvases() const;
void setFilter(const Image::Filter &f);
void setFilter(const Image::Filter &f);
Image::Filter getFilter() const;
void setWrap(const Image::Wrap &w);
@@ -89,12 +89,12 @@ void setFilter(const Image::Filter &f);
int getWidth();
int getHeight();
unsigned int getStatus() const
inline GLenum getStatus() const
{
return status;
}
TextureType getTextureType() const
inline TextureType getTextureType() const
{
return texture_type;
}