mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
Fix wrong type (int to float).
This commit is contained in:
parent
54083bd33a
commit
1aac45449d
@ -2096,7 +2096,7 @@ get_bits_per_pixel(Texture::Format format, int *alphbits) {
|
|||||||
float DXTextureContext9::
|
float DXTextureContext9::
|
||||||
d3d_format_to_bytes_per_pixel (D3DFORMAT format)
|
d3d_format_to_bytes_per_pixel (D3DFORMAT format)
|
||||||
{
|
{
|
||||||
int bytes_per_pixel;
|
float bytes_per_pixel;
|
||||||
|
|
||||||
bytes_per_pixel = 0.0f;
|
bytes_per_pixel = 0.0f;
|
||||||
switch (format)
|
switch (format)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user