mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Improve the NPOT check
This commit is contained in:
parent
4ff8f85110
commit
1dabb54df5
1 changed files with 4 additions and 1 deletions
|
@ -555,7 +555,10 @@ OpenGLContext::OpenGLContext() {
|
|||
caps_.clipDistanceSupported = gl_extensions.VersionGEThan(3, 0);
|
||||
caps_.cullDistanceSupported = gl_extensions.ARB_cull_distance;
|
||||
}
|
||||
caps_.textureNPOTFullySupported = gl_extensions.IsCoreContext || gl_extensions.GLES3 || gl_extensions.ARB_texture_non_power_of_two || gl_extensions.OES_texture_npot;
|
||||
caps_.textureNPOTFullySupported =
|
||||
(!gl_extensions.IsGLES && gl_extensions.VersionGEThan(2, 0, 0)) ||
|
||||
gl_extensions.IsCoreContext || gl_extensions.GLES3 ||
|
||||
gl_extensions.ARB_texture_non_power_of_two || gl_extensions.OES_texture_npot;
|
||||
|
||||
// Interesting potential hack for emulating GL_DEPTH_CLAMP (use a separate varying, force depth in fragment shader):
|
||||
// This will induce a performance penalty on many architectures though so a blanket enable of this
|
||||
|
|
Loading…
Add table
Reference in a new issue