From e4e24eee56e12f76a5708cda6a607d3c97af4e4e Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 19 Dec 2017 18:44:44 +0100 Subject: [PATCH] glgsg: use T_float when downloading 24-bit depth textures This is to match behavior with previous Panda3D versions. See #212 --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index dce9cc7d89..660eeb8d9a 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/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;