isinf not available in GLES 2
This commit is contained in:
parent
92c06a7249
commit
63a70e0f62
|
@ -107,10 +107,14 @@ void main() \n\
|
|||
vtx_base=in_base; \n\
|
||||
vtx_offs=in_offs; \n\
|
||||
vtx_uv=in_uv; \n\
|
||||
vec4 vpos=in_pos; \n\
|
||||
vec4 vpos=in_pos; \n"
|
||||
#ifndef GLES
|
||||
"\
|
||||
if (isinf(vpos.z)) \n\
|
||||
vpos.w = 1.18e-38; \n\
|
||||
else \n\
|
||||
else \n"
|
||||
#endif
|
||||
"\
|
||||
vpos.w = 1.0 / vpos.z; \n"
|
||||
#ifndef GLES
|
||||
"\
|
||||
|
|
Loading…
Reference in New Issue