Browse Source

glgsg: use T_float when downloading 24-bit depth textures

This is to match behavior with previous Panda3D versions.  See #212
rdb 8 năm trước cách đây
mục cha
commit
e4e24eee56
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 0 - 3
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -6460,9 +6460,6 @@ framebuffer_copy_to_ram(Texture *tex, int view, int z,
     break;
 
   case Texture::F_depth_component24:
-    component_type = Texture::T_unsigned_int;
-    break;
-
   case Texture::F_depth_component32:
     component_type = Texture::T_float;
     break;