Tiled sprite improvements!

This commit is contained in:
2023-05-14 19:06:37 -07:00
parent f44fe25011
commit e6c966f3dd
10 changed files with 128 additions and 54 deletions

View File

@ -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);