Tiled sprite improvements!

This commit is contained in:
2023-05-14 19:06:37 -07:00
parent d603da50c7
commit a7aec06aec
13 changed files with 131 additions and 57 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);