Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #307 from neobrain/custom_textures_workaround
Workaround dumb custom texture loading logic.
  • Loading branch information
delroth committed Apr 23, 2014
2 parents 0ae6895 + ca2a79d commit 13b1ff5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Core/VideoCommon/HiresTextures.cpp
Expand Up @@ -109,6 +109,11 @@ PC_TexFormat GetHiresTex(const std::string& filename, unsigned int* pWidth, unsi

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_I8:
case GX_TF_IA4:
Expand All @@ -126,6 +131,7 @@ PC_TexFormat GetHiresTex(const std::string& filename, unsigned int* pWidth, unsi
}
returnTex = PC_TEX_FMT_IA8;
break;
#endif
default:
*required_size = width * height * 4;
if (data_size < *required_size)
Expand Down

0 comments on commit 13b1ff5

Please sign in to comment.