From c49e6c17d0f460be646392d7979ec000b2168e9e Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Thu, 27 Sep 2018 21:45:03 +0200 Subject: [PATCH] gl: isinf() issues with GLES3. Use it with GL only Fixes black screen in PSO and Sonic Adventure 2 on Android --- core/rend/gles/gles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rend/gles/gles.cpp b/core/rend/gles/gles.cpp index 6edb3f7b2..f70a2e0f4 100644 --- a/core/rend/gles/gles.cpp +++ b/core/rend/gles/gles.cpp @@ -114,7 +114,7 @@ void main() \n\ vtx_offs=in_offs; \n\ vtx_uv=in_uv; \n\ vec4 vpos=in_pos; \n\ -#if TARGET_GL != GLES2 \n\ +#if TARGET_GL == GL \n\ if (isinf(vpos.z)) \n\ vpos.w = 1.18e-38; \n\ else \n\