understand more GL_DEPTH_COMPONENT variants when reading back

This commit is contained in:
rdb 2012-01-15 11:13:53 +00:00
parent 09a9a5d8b3
commit 86dce18afa

View File

@ -9486,6 +9486,9 @@ do_extract_texture_data(CLP(TextureContext) *gtc) {
break;
#endif
case GL_DEPTH_COMPONENT:
case GL_DEPTH_COMPONENT16:
case GL_DEPTH_COMPONENT24:
case GL_DEPTH_COMPONENT32:
type = Texture::T_float;
format = Texture::F_depth_component;
break;