gl: isinf() issues with GLES3. Use it with GL only

Fixes black screen in PSO and Sonic Adventure 2 on Android
This commit is contained in:
Flyinghead 2018-09-27 21:45:03 +02:00
parent 5fe41e5f1f
commit c49e6c17d0
1 changed files with 1 additions and 1 deletions

View File

@ -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\