Fix some compiler snafus

This commit is contained in:
Pavel Krajcevski 2013-09-24 17:46:09 -04:00
parent 1636232717
commit 75e570ed16
2 changed files with 2 additions and 4 deletions

View file

@ -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);

View file

@ -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();