Skip to content

Commit

Permalink
Merge branch 'master' into feature_openxr_foveation
Browse files Browse the repository at this point in the history
  • Loading branch information
lvonasek committed Mar 9, 2023
2 parents 4fcc692 + ecf1134 commit 7536b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/GLES/TextureCacheGLES.cpp
Expand Up @@ -246,7 +246,7 @@ void TextureCacheGLES::BuildTexture(TexCacheEntry *const entry) {
int th = plan.createH;

Draw::DataFormat dstFmt = GetDestFormat(GETextureFormat(entry->format), gstate.getClutPaletteFormat());
if (plan.replaced->GetSize(plan.baseLevelSrc, tw, th)) {
if (plan.replaced && plan.replaced->GetSize(plan.baseLevelSrc, tw, th)) {
dstFmt = plan.replaced->Format();
} else if (plan.scaleFactor > 1 || plan.saveTexture) {
dstFmt = Draw::DataFormat::R8G8B8A8_UNORM;
Expand Down

0 comments on commit 7536b8d

Please sign in to comment.