mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -04:00
Wii U: Fix corrupted textures whoops
This commit is contained in:
parent
e82c9c0a9b
commit
82f9f7047e
@ -102,7 +102,7 @@ static GfxResourceID Gfx_AllocTexture(struct Bitmap* bmp, int rowWidth, cc_uint8
|
|||||||
tex->surface.image = MEMAllocFromDefaultHeapEx(tex->surface.imageSize, tex->surface.alignment);
|
tex->surface.image = MEMAllocFromDefaultHeapEx(tex->surface.imageSize, tex->surface.alignment);
|
||||||
// TODO check result
|
// TODO check result
|
||||||
|
|
||||||
CopyTextureData(tex->surface.image, tex->surface.pitch, bmp, rowWidth << 2);
|
CopyTextureData(tex->surface.image, tex->surface.pitch << 2, bmp, rowWidth << 2);
|
||||||
GX2Invalidate(GX2_INVALIDATE_MODE_CPU_TEXTURE, tex->surface.image, tex->surface.imageSize);
|
GX2Invalidate(GX2_INVALIDATE_MODE_CPU_TEXTURE, tex->surface.image, tex->surface.imageSize);
|
||||||
return tex;
|
return tex;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user