gl33: fix inverted logic in gl33_framebuffer_attach

This commit is contained in:
Andrei Alexeyev 2022-09-05 06:23:35 +02:00
parent dc62286cf1
commit 3fd3c33371
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -74,7 +74,7 @@ void gl33_framebuffer_attach(Framebuffer *framebuffer, Texture *tex, uint mipmap
framebuffer->attachment_mipmaps[attachment] = mipmap;
// need to update draw buffers
framebuffer->draw_buffers_dirty = false;
framebuffer->draw_buffers_dirty = true;
IF_DEBUG(if(tex) {
log_debug("%s %s = %s (%ux%u mip %u)", framebuffer->debug_label, attachment_str(attachment), tex->debug_label, tex->params.width, tex->params.height, mipmap);