From 1aac45449df9cb7f6ba87446cb60b57ece78f79e Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Wed, 24 Sep 2008 23:06:14 +0000 Subject: [PATCH] Fix wrong type (int to float). --- panda/src/dxgsg9/dxTextureContext9.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/dxgsg9/dxTextureContext9.cxx b/panda/src/dxgsg9/dxTextureContext9.cxx index 1ee6fadbc9..d454002cd0 100755 --- a/panda/src/dxgsg9/dxTextureContext9.cxx +++ b/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)