Merge pull request #307 from neobrain/custom_textures_workaround
Workaround dumb custom texture loading logic.
This commit is contained in:
commit
13b1ff5160
|
@ -109,6 +109,11 @@ PC_TexFormat GetHiresTex(const std::string& filename, unsigned int* pWidth, unsi
|
||||||
|
|
||||||
switch (texformat)
|
switch (texformat)
|
||||||
{
|
{
|
||||||
|
// TODO(neobrain): This function currently has no way to enforce RGBA32
|
||||||
|
// output, which however is required on some configurations to function
|
||||||
|
// properly. As a lazy workaround, we hence disable the optimized code
|
||||||
|
// path for now.
|
||||||
|
#if 0
|
||||||
case GX_TF_I4:
|
case GX_TF_I4:
|
||||||
case GX_TF_I8:
|
case GX_TF_I8:
|
||||||
case GX_TF_IA4:
|
case GX_TF_IA4:
|
||||||
|
@ -126,6 +131,7 @@ PC_TexFormat GetHiresTex(const std::string& filename, unsigned int* pWidth, unsi
|
||||||
}
|
}
|
||||||
returnTex = PC_TEX_FMT_IA8;
|
returnTex = PC_TEX_FMT_IA8;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
*required_size = width * height * 4;
|
*required_size = width * height * 4;
|
||||||
if (data_size < *required_size)
|
if (data_size < *required_size)
|
||||||
|
|
Loading…
Reference in New Issue