Tiled sprite improvements!
This commit is contained in:
1 parent
f44fe25011
commit
e6c966f3dd
10 files changed
+128
-54
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