Skip to content

Commit

Permalink
glgsg: Don't set immutable flag for buffer textures (regression)
Browse files Browse the repository at this point in the history
Fixes #1602
  • Loading branch information
rdb committed Jan 23, 2024
1 parent 9517ffb commit 39d964c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panda/src/glstuff/glGraphicsStateGuardian_src.cxx
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 39d964c

Please sign in to comment.