Explorar el Código

understand more GL_DEPTH_COMPONENT variants when reading back

rdb hace 14 años
padre
commit
86dce18afa
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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;
     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;