소스 검색

glgsg: Don't set immutable flag for buffer textures (regression)

Fixes #1602
rdb 1 년 전
부모
커밋
39d964c4bb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 2 - 1
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;
     }
   }