浏览代码

glgsg: Show internal format in debug output

rdb 2 年之前
父节点
当前提交
4f37d97cf6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 2 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -13287,7 +13287,8 @@ upload_texture(CLP(TextureContext) *gtc, bool force, bool uses_mipmaps) {
         GLCAT.debug()
         GLCAT.debug()
           << "allocating storage for texture " << tex->get_name() << ", " << width
           << "allocating storage for texture " << tex->get_name() << ", " << width
            << " x " << height << " x " << depth << ", mipmaps " << num_levels
            << " x " << height << " x " << depth << ", mipmaps " << num_levels
-          << ", uses_mipmaps = " << uses_mipmaps << "\n";
+          << ", uses_mipmaps = " << uses_mipmaps << ", internal_format = 0x"
+          << std::hex << internal_format << std::dec << "\n";
       }
       }
 
 
       switch (texture_type) {
       switch (texture_type) {