mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-03-06 14:27:44 +00:00
avoid cast warning
This commit is contained in:
parent
c4dc96ef71
commit
a5301efed6
|
@ -282,7 +282,7 @@ void CLegacy3D::DecodeTexture(int format, int x, int y, int width, int height)
|
|||
textureBuffer[i++] = c;
|
||||
textureBuffer[i++] = c;
|
||||
textureBuffer[i++] = c;
|
||||
textureBuffer[i++] = (texel == 0xFF) ? 0. : 1.;
|
||||
textureBuffer[i++] = (texel == 0xFF) ? 0.f : 1.f;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -311,7 +311,7 @@ void CLegacy3D::DecodeTexture(int format, int x, int y, int width, int height)
|
|||
textureBuffer[i++] = c;
|
||||
textureBuffer[i++] = c;
|
||||
textureBuffer[i++] = c;
|
||||
textureBuffer[i++] = (texel == 0xFF) ? 0. : 1.;
|
||||
textureBuffer[i++] = (texel == 0xFF) ? 0.f : 1.f;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue