Fix reused texture IDs not being reinitialized.

This commit is contained in:
Steveice10 2017-07-15 12:35:56 -07:00
parent edf6a20618
commit b3370c97af

View File

@ -346,6 +346,7 @@ static void screen_prepare_texture(u32* pow2WidthOut, u32* pow2HeightOut, u32 id
if(textures[id].tex.data != NULL && (textures[id].tex.width != pow2Width || textures[id].tex.height != pow2Height || textures[id].tex.fmt != format)) {
C3D_TexDelete(&textures[id].tex);
textures[id].tex.data = NULL;
}
if(textures[id].tex.data == NULL && !C3D_TexInit(&textures[id].tex, (u16) pow2Width, (u16) pow2Height, format)) {