mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
understand more GL_DEPTH_COMPONENT variants when reading back
This commit is contained in:
parent
09a9a5d8b3
commit
86dce18afa
@ -9486,6 +9486,9 @@ do_extract_texture_data(CLP(TextureContext) *gtc) {
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case GL_DEPTH_COMPONENT:
|
case GL_DEPTH_COMPONENT:
|
||||||
|
case GL_DEPTH_COMPONENT16:
|
||||||
|
case GL_DEPTH_COMPONENT24:
|
||||||
|
case GL_DEPTH_COMPONENT32:
|
||||||
type = Texture::T_float;
|
type = Texture::T_float;
|
||||||
format = Texture::F_depth_component;
|
format = Texture::F_depth_component;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user