Skip to content

Commit e0150e2

Browse files
authored
Update Caps.cpp
1 parent 9a9d2f2 commit e0150e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/libANGLE/Caps.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ static bool DetermineDepthTextureANGLESupport(const TextureCapsMap &textureCaps)
675675
GL_DEPTH24_STENCIL8_OES,
676676
};
677677

678+
if (std::getenv("ANGLE_D32OES_FORCE_NATIVE")) return true;
678679
return GetFormatSupport(textureCaps, requiredFormats, true, false, true, false, false);
679680
}
680681

@@ -692,6 +693,7 @@ static bool DetermineDepthTextureOESSupport(const TextureCapsMap &textureCaps)
692693
#endif
693694
};
694695

696+
if (std::getenv("ANGLE_D32OES_FORCE_NATIVE")) return true;
695697
return GetFormatSupport(textureCaps, requiredFormats, true, false, true, true, false);
696698
}
697699

@@ -712,6 +714,7 @@ static bool DetermineDepth32Support(const TextureCapsMap &textureCaps)
712714
GL_DEPTH_COMPONENT32_OES,
713715
};
714716

717+
if (std::getenv("ANGLE_D32OES_FORCE_NATIVE")) return true;
715718
return GetFormatSupport(textureCaps, requiredFormats, false, false, true, true, false);
716719
}
717720

0 commit comments

Comments
 (0)