Tiled sprite improvements!
This commit is contained in:
@ -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