浏览代码

Fix wrong type (int to float).

aignacio_sf 17 年之前
父节点
当前提交
1aac45449d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/dxgsg9/dxTextureContext9.cxx

+ 1 - 1
panda/src/dxgsg9/dxTextureContext9.cxx

@@ -2096,7 +2096,7 @@ get_bits_per_pixel(Texture::Format format, int *alphbits) {
 float DXTextureContext9::
 d3d_format_to_bytes_per_pixel (D3DFORMAT format)
 {
-  int bytes_per_pixel;
+  float bytes_per_pixel;
   
   bytes_per_pixel = 0.0f;
   switch (format)