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:
parent
5fe41e5f1f
commit
c49e6c17d0
|
@ -114,7 +114,7 @@ void main() \n\
|
||||||
vtx_offs=in_offs; \n\
|
vtx_offs=in_offs; \n\
|
||||||
vtx_uv=in_uv; \n\
|
vtx_uv=in_uv; \n\
|
||||||
vec4 vpos=in_pos; \n\
|
vec4 vpos=in_pos; \n\
|
||||||
#if TARGET_GL != GLES2 \n\
|
#if TARGET_GL == GL \n\
|
||||||
if (isinf(vpos.z)) \n\
|
if (isinf(vpos.z)) \n\
|
||||||
vpos.w = 1.18e-38; \n\
|
vpos.w = 1.18e-38; \n\
|
||||||
else \n\
|
else \n\
|
||||||
|
|
Loading…
Reference in New Issue