Shaders: check GL_OES_standard_derivatives extension, fixes #145

This commit is contained in:
Emux 2016-08-19 22:08:37 +03:00
parent c4d7b30f0d
commit 19338fab3a
3 changed files with 8 additions and 0 deletions

View File

@ -22,8 +22,12 @@ main(){
// last two bits hold the texture coordinates.
v_st = abs(mod(dir, 4.0)) - 1.0;
}
$$
#ifdef GL_OES_standard_derivatives
#extension GL_OES_standard_derivatives : enable
#endif
#ifdef GLES
precision highp float;
#endif

View File

@ -29,7 +29,9 @@ main(){
$$
#ifdef GL_OES_standard_derivatives
#extension GL_OES_standard_derivatives : enable
#endif
#ifdef GLES
precision highp float;
#endif

View File

@ -29,7 +29,9 @@ main(){
$$
#ifdef GL_OES_standard_derivatives
#extension GL_OES_standard_derivatives : enable
#endif
#ifdef GLES
precision highp float;
#endif