Tiled sprite improvements!
This commit is contained in:
1 parent
d603da50c7
commit
a7aec06aec
13 files changed
+131
-57
No files matched your search
@@ -18,8 +18,8 @@ Texture * TextureRenderTarget::getTexture() {
|
||||
void TextureRenderTarget::setSize(float_t width, float_t height) {
|
||||
assertTrue(width > 0);
|
||||
assertTrue(height > 0);
|
||||
assertTrue(width != this->getWidth());
|
||||
assertTrue(height != this->getHeight());
|
||||
|
||||
if(width == this->getWidth() && height == this->getHeight()) return;
|
||||
|
||||
// Delete old buffers.
|
||||
if(this->rboId != -1) glDeleteRenderbuffers(1, &this->rboId);
|
||||
|
||||
Reference in new issue
Block a user