mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-24 02:50:59 +00:00
Fix some compiler snafus
This commit is contained in:
parent
1636232717
commit
75e570ed16
|
@ -275,9 +275,7 @@ namespace PVRTCC {
|
||||||
|
|
||||||
if(bDebugImages) {
|
if(bDebugImages) {
|
||||||
Image dbgMod(h, w);
|
Image dbgMod(h, w);
|
||||||
uint8 modDepth[4] = { 8, 4, 4, 4 };
|
for(uint32 i = 0; i < h*w; i++) {
|
||||||
|
|
||||||
for(int i = 0; i < h*w; i++) {
|
|
||||||
float fb = static_cast<float>(modValues[i]);
|
float fb = static_cast<float>(modValues[i]);
|
||||||
uint8 val = static_cast<uint8>((fb / 8.0f) * 15.0f);
|
uint8 val = static_cast<uint8>((fb / 8.0f) * 15.0f);
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ class ImageTester {
|
||||||
pvrtexture::CPVRTexture pvrTex(filename);
|
pvrtexture::CPVRTexture pvrTex(filename);
|
||||||
|
|
||||||
const uint8 *data = static_cast<const uint8 *>(pvrTex.getDataPtr());
|
const uint8 *data = static_cast<const uint8 *>(pvrTex.getDataPtr());
|
||||||
ASSERT_TRUE(data);
|
assert(data);
|
||||||
|
|
||||||
const pvrtexture::CPVRTextureHeader &hdr = pvrTex.getHeader();
|
const pvrtexture::CPVRTextureHeader &hdr = pvrTex.getHeader();
|
||||||
const uint32 w = hdr.getWidth();
|
const uint32 w = hdr.getWidth();
|
||||||
|
|
Loading…
Reference in a new issue