Avoid direct refs to OES_texture_npot.

So that we can control it centrally in GLES_GPU.
This commit is contained in:
Unknown W. Brackets committed 2015-11-15 15:06:09 -08:00
1 parent ec79dacc35
commit 2ed8aab2d7
2 files changed
+5 -3

No files matched your search

+3 -2
View File
@@ -1498,8 +1498,9 @@ void TextureCache::SetTexture(bool force) {
// Mobile devices don't get the higher scale factors, too expensive. Very rough way to decide though...
if (!gstate_c.Supports(GPU_IS_MOBILE)) {
scaleFactor = std::min(gstate_c.Supports(GPU_SUPPORTS_OES_TEXTURE_NPOT) ? 5 : 4, scaleFactor);
if (!gl_extensions.OES_texture_npot && scaleFactor == 3) {
bool supportNpot = gstate_c.Supports(GPU_SUPPORTS_OES_TEXTURE_NPOT);
scaleFactor = std::min(supportNpot ? 5 : 4, scaleFactor);
if (!supportNpot && scaleFactor == 3) {
scaleFactor = 2;
}
} else {