From 39d964c4bb82d6dbb2c17256026eb6260e25d5d2 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 23 Jan 2024 15:37:07 +0100 Subject: [PATCH] glgsg: Don't set immutable flag for buffer textures (regression) Fixes #1602 --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 1b66ee9895..38e7ed778f 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -14070,7 +14070,8 @@ upload_texture(CLP(TextureContext) *gtc, bool force, bool uses_mipmaps) { << "Attempt to modify texture with immutable storage, recreating texture.\n"; gtc->reset_data(gtc->_target, num_views); } - else if (_supports_tex_storage && gl_immutable_texture_storage) { + else if (_supports_tex_storage && gl_immutable_texture_storage && + texture_type != Texture::TT_buffer_texture) { gtc->_immutable = true; } }