Browse Source

understand more GL_DEPTH_COMPONENT variants when reading back

rdb 14 years ago
parent
commit
86dce18afa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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

@@ -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;