diff --git a/resources/shaders/gl3/blit.fs.glsl b/resources/shaders/gl3/blit.fs.glsl index 4d8cb41e..b32fc956 100644 --- a/resources/shaders/gl3/blit.fs.glsl +++ b/resources/shaders/gl3/blit.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform sampler2D uSrc; diff --git a/resources/shaders/gl3/blit.vs.glsl b/resources/shaders/gl3/blit.vs.glsl index aefef251..6c9391d5 100644 --- a/resources/shaders/gl3/blit.vs.glsl +++ b/resources/shaders/gl3/blit.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + in ivec2 aPosition; diff --git a/resources/shaders/gl3/clear.fs.glsl b/resources/shaders/gl3/clear.fs.glsl index 056122ed..447e4d83 100644 --- a/resources/shaders/gl3/clear.fs.glsl +++ b/resources/shaders/gl3/clear.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec4 uColor; diff --git a/resources/shaders/gl3/clear.vs.glsl b/resources/shaders/gl3/clear.vs.glsl index 50636db7..2dd02b1c 100644 --- a/resources/shaders/gl3/clear.vs.glsl +++ b/resources/shaders/gl3/clear.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec4 uRect; uniform vec2 uFramebufferSize; diff --git a/resources/shaders/gl3/debug_solid.fs.glsl b/resources/shaders/gl3/debug_solid.fs.glsl index 056122ed..447e4d83 100644 --- a/resources/shaders/gl3/debug_solid.fs.glsl +++ b/resources/shaders/gl3/debug_solid.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec4 uColor; diff --git a/resources/shaders/gl3/debug_solid.vs.glsl b/resources/shaders/gl3/debug_solid.vs.glsl index 68f4ec92..de155484 100644 --- a/resources/shaders/gl3/debug_solid.vs.glsl +++ b/resources/shaders/gl3/debug_solid.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec2 uFramebufferSize; diff --git a/resources/shaders/gl3/debug_texture.fs.glsl b/resources/shaders/gl3/debug_texture.fs.glsl index 4dda9b43..c786f352 100644 --- a/resources/shaders/gl3/debug_texture.fs.glsl +++ b/resources/shaders/gl3/debug_texture.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform sampler2D uTexture; uniform vec4 uColor; diff --git a/resources/shaders/gl3/debug_texture.vs.glsl b/resources/shaders/gl3/debug_texture.vs.glsl index 4dc58ff4..e073da21 100644 --- a/resources/shaders/gl3/debug_texture.vs.glsl +++ b/resources/shaders/gl3/debug_texture.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec2 uFramebufferSize; uniform vec2 uTextureSize; diff --git a/resources/shaders/gl3/demo_ground.fs.glsl b/resources/shaders/gl3/demo_ground.fs.glsl index 810a88a0..63c0883e 100644 --- a/resources/shaders/gl3/demo_ground.fs.glsl +++ b/resources/shaders/gl3/demo_ground.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec4 uGroundColor; uniform vec4 uGridlineColor; diff --git a/resources/shaders/gl3/demo_ground.vs.glsl b/resources/shaders/gl3/demo_ground.vs.glsl index f329f339..cb3a4742 100644 --- a/resources/shaders/gl3/demo_ground.vs.glsl +++ b/resources/shaders/gl3/demo_ground.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uTransform; uniform int uGridlineCount; diff --git a/resources/shaders/gl3/fill.fs.glsl b/resources/shaders/gl3/fill.fs.glsl index 7541b242..e56cbaeb 100644 --- a/resources/shaders/gl3/fill.fs.glsl +++ b/resources/shaders/gl3/fill.fs.glsl @@ -15,7 +15,10 @@ #extension GL_GOOGLE_include_directive : enable precision highp float; -precision highp sampler2D; + + + + diff --git a/resources/shaders/gl3/fill.vs.glsl b/resources/shaders/gl3/fill.vs.glsl index 6f530e42..58b0b7f0 100644 --- a/resources/shaders/gl3/fill.vs.glsl +++ b/resources/shaders/gl3/fill.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec2 uFramebufferSize; uniform vec2 uTileSize; diff --git a/resources/shaders/gl3/reproject.fs.glsl b/resources/shaders/gl3/reproject.fs.glsl index 67556c40..a2fe1643 100644 --- a/resources/shaders/gl3/reproject.fs.glsl +++ b/resources/shaders/gl3/reproject.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uOldTransform; uniform sampler2D uTexture; diff --git a/resources/shaders/gl3/reproject.vs.glsl b/resources/shaders/gl3/reproject.vs.glsl index 60317f1e..539e30e1 100644 --- a/resources/shaders/gl3/reproject.vs.glsl +++ b/resources/shaders/gl3/reproject.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uNewTransform; diff --git a/resources/shaders/gl3/stencil.fs.glsl b/resources/shaders/gl3/stencil.fs.glsl index c18450e2..2174f77a 100644 --- a/resources/shaders/gl3/stencil.fs.glsl +++ b/resources/shaders/gl3/stencil.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + out vec4 oFragColor; diff --git a/resources/shaders/gl3/stencil.vs.glsl b/resources/shaders/gl3/stencil.vs.glsl index 6501b942..e4211187 100644 --- a/resources/shaders/gl3/stencil.vs.glsl +++ b/resources/shaders/gl3/stencil.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + in vec3 aPosition; diff --git a/resources/shaders/gl3/tile.fs.glsl b/resources/shaders/gl3/tile.fs.glsl index 9cd13cf7..33815bd9 100644 --- a/resources/shaders/gl3/tile.fs.glsl +++ b/resources/shaders/gl3/tile.fs.glsl @@ -36,7 +36,10 @@ #extension GL_GOOGLE_include_directive : enable precision highp float; -precision highp sampler2D; + + + + diff --git a/resources/shaders/gl3/tile.vs.glsl b/resources/shaders/gl3/tile.vs.glsl index 029f364c..6f3819c0 100644 --- a/resources/shaders/gl3/tile.vs.glsl +++ b/resources/shaders/gl3/tile.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uTransform; uniform vec2 uTileSize; diff --git a/resources/shaders/gl3/tile_clip.fs.glsl b/resources/shaders/gl3/tile_clip.fs.glsl index 93ffe55e..9b8b6cd3 100644 --- a/resources/shaders/gl3/tile_clip.fs.glsl +++ b/resources/shaders/gl3/tile_clip.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform sampler2D uSrc; diff --git a/resources/shaders/gl3/tile_clip.vs.glsl b/resources/shaders/gl3/tile_clip.vs.glsl index 5867c3e5..6693ec92 100644 --- a/resources/shaders/gl3/tile_clip.vs.glsl +++ b/resources/shaders/gl3/tile_clip.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + in ivec2 aTileOffset; in ivec2 aDestTileOrigin; diff --git a/resources/shaders/gl3/tile_copy.fs.glsl b/resources/shaders/gl3/tile_copy.fs.glsl index 0a43eeb8..af33abfd 100644 --- a/resources/shaders/gl3/tile_copy.fs.glsl +++ b/resources/shaders/gl3/tile_copy.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec2 uFramebufferSize; uniform sampler2D uSrc; diff --git a/resources/shaders/gl3/tile_copy.vs.glsl b/resources/shaders/gl3/tile_copy.vs.glsl index b1c24b08..87925fda 100644 --- a/resources/shaders/gl3/tile_copy.vs.glsl +++ b/resources/shaders/gl3/tile_copy.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uTransform; uniform vec2 uTileSize; diff --git a/resources/shaders/gl4/blit.fs.glsl b/resources/shaders/gl4/blit.fs.glsl index 4d8cb41e..b32fc956 100644 --- a/resources/shaders/gl4/blit.fs.glsl +++ b/resources/shaders/gl4/blit.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform sampler2D uSrc; diff --git a/resources/shaders/gl4/blit.vs.glsl b/resources/shaders/gl4/blit.vs.glsl index aefef251..6c9391d5 100644 --- a/resources/shaders/gl4/blit.vs.glsl +++ b/resources/shaders/gl4/blit.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + in ivec2 aPosition; diff --git a/resources/shaders/gl4/clear.fs.glsl b/resources/shaders/gl4/clear.fs.glsl index 056122ed..447e4d83 100644 --- a/resources/shaders/gl4/clear.fs.glsl +++ b/resources/shaders/gl4/clear.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec4 uColor; diff --git a/resources/shaders/gl4/clear.vs.glsl b/resources/shaders/gl4/clear.vs.glsl index 50636db7..2dd02b1c 100644 --- a/resources/shaders/gl4/clear.vs.glsl +++ b/resources/shaders/gl4/clear.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec4 uRect; uniform vec2 uFramebufferSize; diff --git a/resources/shaders/gl4/debug_solid.fs.glsl b/resources/shaders/gl4/debug_solid.fs.glsl index 056122ed..447e4d83 100644 --- a/resources/shaders/gl4/debug_solid.fs.glsl +++ b/resources/shaders/gl4/debug_solid.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec4 uColor; diff --git a/resources/shaders/gl4/debug_solid.vs.glsl b/resources/shaders/gl4/debug_solid.vs.glsl index 68f4ec92..de155484 100644 --- a/resources/shaders/gl4/debug_solid.vs.glsl +++ b/resources/shaders/gl4/debug_solid.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec2 uFramebufferSize; diff --git a/resources/shaders/gl4/debug_texture.fs.glsl b/resources/shaders/gl4/debug_texture.fs.glsl index 4dda9b43..c786f352 100644 --- a/resources/shaders/gl4/debug_texture.fs.glsl +++ b/resources/shaders/gl4/debug_texture.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform sampler2D uTexture; uniform vec4 uColor; diff --git a/resources/shaders/gl4/debug_texture.vs.glsl b/resources/shaders/gl4/debug_texture.vs.glsl index 4dc58ff4..e073da21 100644 --- a/resources/shaders/gl4/debug_texture.vs.glsl +++ b/resources/shaders/gl4/debug_texture.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec2 uFramebufferSize; uniform vec2 uTextureSize; diff --git a/resources/shaders/gl4/demo_ground.fs.glsl b/resources/shaders/gl4/demo_ground.fs.glsl index 810a88a0..63c0883e 100644 --- a/resources/shaders/gl4/demo_ground.fs.glsl +++ b/resources/shaders/gl4/demo_ground.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec4 uGroundColor; uniform vec4 uGridlineColor; diff --git a/resources/shaders/gl4/demo_ground.vs.glsl b/resources/shaders/gl4/demo_ground.vs.glsl index f329f339..cb3a4742 100644 --- a/resources/shaders/gl4/demo_ground.vs.glsl +++ b/resources/shaders/gl4/demo_ground.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uTransform; uniform int uGridlineCount; diff --git a/resources/shaders/gl4/fill.cs.glsl b/resources/shaders/gl4/fill.cs.glsl index ae00de7f..3a528df5 100644 --- a/resources/shaders/gl4/fill.cs.glsl +++ b/resources/shaders/gl4/fill.cs.glsl @@ -15,7 +15,10 @@ #extension GL_GOOGLE_include_directive : enable precision highp float; -precision highp sampler2D; + + + + diff --git a/resources/shaders/gl4/fill.fs.glsl b/resources/shaders/gl4/fill.fs.glsl index 7541b242..e56cbaeb 100644 --- a/resources/shaders/gl4/fill.fs.glsl +++ b/resources/shaders/gl4/fill.fs.glsl @@ -15,7 +15,10 @@ #extension GL_GOOGLE_include_directive : enable precision highp float; -precision highp sampler2D; + + + + diff --git a/resources/shaders/gl4/fill.vs.glsl b/resources/shaders/gl4/fill.vs.glsl index 6f530e42..58b0b7f0 100644 --- a/resources/shaders/gl4/fill.vs.glsl +++ b/resources/shaders/gl4/fill.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec2 uFramebufferSize; uniform vec2 uTileSize; diff --git a/resources/shaders/gl4/reproject.fs.glsl b/resources/shaders/gl4/reproject.fs.glsl index 67556c40..a2fe1643 100644 --- a/resources/shaders/gl4/reproject.fs.glsl +++ b/resources/shaders/gl4/reproject.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uOldTransform; uniform sampler2D uTexture; diff --git a/resources/shaders/gl4/reproject.vs.glsl b/resources/shaders/gl4/reproject.vs.glsl index 60317f1e..539e30e1 100644 --- a/resources/shaders/gl4/reproject.vs.glsl +++ b/resources/shaders/gl4/reproject.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uNewTransform; diff --git a/resources/shaders/gl4/stencil.fs.glsl b/resources/shaders/gl4/stencil.fs.glsl index c18450e2..2174f77a 100644 --- a/resources/shaders/gl4/stencil.fs.glsl +++ b/resources/shaders/gl4/stencil.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + out vec4 oFragColor; diff --git a/resources/shaders/gl4/stencil.vs.glsl b/resources/shaders/gl4/stencil.vs.glsl index 6501b942..e4211187 100644 --- a/resources/shaders/gl4/stencil.vs.glsl +++ b/resources/shaders/gl4/stencil.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + in vec3 aPosition; diff --git a/resources/shaders/gl4/tile.fs.glsl b/resources/shaders/gl4/tile.fs.glsl index 9cd13cf7..33815bd9 100644 --- a/resources/shaders/gl4/tile.fs.glsl +++ b/resources/shaders/gl4/tile.fs.glsl @@ -36,7 +36,10 @@ #extension GL_GOOGLE_include_directive : enable precision highp float; -precision highp sampler2D; + + + + diff --git a/resources/shaders/gl4/tile.vs.glsl b/resources/shaders/gl4/tile.vs.glsl index 029f364c..6f3819c0 100644 --- a/resources/shaders/gl4/tile.vs.glsl +++ b/resources/shaders/gl4/tile.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uTransform; uniform vec2 uTileSize; diff --git a/resources/shaders/gl4/tile_clip.fs.glsl b/resources/shaders/gl4/tile_clip.fs.glsl index 93ffe55e..9b8b6cd3 100644 --- a/resources/shaders/gl4/tile_clip.fs.glsl +++ b/resources/shaders/gl4/tile_clip.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform sampler2D uSrc; diff --git a/resources/shaders/gl4/tile_clip.vs.glsl b/resources/shaders/gl4/tile_clip.vs.glsl index 5867c3e5..6693ec92 100644 --- a/resources/shaders/gl4/tile_clip.vs.glsl +++ b/resources/shaders/gl4/tile_clip.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + in ivec2 aTileOffset; in ivec2 aDestTileOrigin; diff --git a/resources/shaders/gl4/tile_copy.fs.glsl b/resources/shaders/gl4/tile_copy.fs.glsl index 0a43eeb8..af33abfd 100644 --- a/resources/shaders/gl4/tile_copy.fs.glsl +++ b/resources/shaders/gl4/tile_copy.fs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform vec2 uFramebufferSize; uniform sampler2D uSrc; diff --git a/resources/shaders/gl4/tile_copy.vs.glsl b/resources/shaders/gl4/tile_copy.vs.glsl index b1c24b08..87925fda 100644 --- a/resources/shaders/gl4/tile_copy.vs.glsl +++ b/resources/shaders/gl4/tile_copy.vs.glsl @@ -13,7 +13,10 @@ precision highp float; -precision highp sampler2D; + + + + uniform mat4 uTransform; uniform vec2 uTileSize; diff --git a/shaders/blit.fs.glsl b/shaders/blit.fs.glsl index 63020892..8d461ed4 100644 --- a/shaders/blit.fs.glsl +++ b/shaders/blit.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform sampler2D uSrc; diff --git a/shaders/blit.vs.glsl b/shaders/blit.vs.glsl index 353c7537..ca3b0f7c 100644 --- a/shaders/blit.vs.glsl +++ b/shaders/blit.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif in ivec2 aPosition; diff --git a/shaders/clear.fs.glsl b/shaders/clear.fs.glsl index 78084526..624f66e9 100644 --- a/shaders/clear.fs.glsl +++ b/shaders/clear.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform vec4 uColor; diff --git a/shaders/clear.vs.glsl b/shaders/clear.vs.glsl index 4d71afab..2bf5cc46 100644 --- a/shaders/clear.vs.glsl +++ b/shaders/clear.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform vec4 uRect; uniform vec2 uFramebufferSize; diff --git a/shaders/debug_solid.fs.glsl b/shaders/debug_solid.fs.glsl index 5c759f1e..5ceb65f9 100644 --- a/shaders/debug_solid.fs.glsl +++ b/shaders/debug_solid.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform vec4 uColor; diff --git a/shaders/debug_solid.vs.glsl b/shaders/debug_solid.vs.glsl index 3bf0442e..b10dde44 100644 --- a/shaders/debug_solid.vs.glsl +++ b/shaders/debug_solid.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform vec2 uFramebufferSize; diff --git a/shaders/debug_texture.fs.glsl b/shaders/debug_texture.fs.glsl index 92819f8a..c01d386a 100644 --- a/shaders/debug_texture.fs.glsl +++ b/shaders/debug_texture.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform sampler2D uTexture; uniform vec4 uColor; diff --git a/shaders/debug_texture.vs.glsl b/shaders/debug_texture.vs.glsl index 4a9df883..2f918e29 100644 --- a/shaders/debug_texture.vs.glsl +++ b/shaders/debug_texture.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform vec2 uFramebufferSize; uniform vec2 uTextureSize; diff --git a/shaders/demo_ground.fs.glsl b/shaders/demo_ground.fs.glsl index 8eff9700..edfbe1a2 100644 --- a/shaders/demo_ground.fs.glsl +++ b/shaders/demo_ground.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform vec4 uGroundColor; uniform vec4 uGridlineColor; diff --git a/shaders/demo_ground.vs.glsl b/shaders/demo_ground.vs.glsl index 39b26bf3..723d79db 100644 --- a/shaders/demo_ground.vs.glsl +++ b/shaders/demo_ground.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform mat4 uTransform; uniform int uGridlineCount; diff --git a/shaders/fill.cs.glsl b/shaders/fill.cs.glsl index 71a4beff..700c2946 100644 --- a/shaders/fill.cs.glsl +++ b/shaders/fill.cs.glsl @@ -13,7 +13,10 @@ #extension GL_GOOGLE_include_directive : enable precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif #include "fill.inc.glsl" diff --git a/shaders/fill.fs.glsl b/shaders/fill.fs.glsl index 0848eb48..6ed65f9c 100644 --- a/shaders/fill.fs.glsl +++ b/shaders/fill.fs.glsl @@ -13,7 +13,10 @@ #extension GL_GOOGLE_include_directive : enable precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif #include "fill.inc.glsl" diff --git a/shaders/fill.vs.glsl b/shaders/fill.vs.glsl index a8bc1acd..d513b5ef 100644 --- a/shaders/fill.vs.glsl +++ b/shaders/fill.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform vec2 uFramebufferSize; uniform vec2 uTileSize; diff --git a/shaders/reproject.fs.glsl b/shaders/reproject.fs.glsl index d03661ba..81d3e0eb 100644 --- a/shaders/reproject.fs.glsl +++ b/shaders/reproject.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform mat4 uOldTransform; uniform sampler2D uTexture; diff --git a/shaders/reproject.vs.glsl b/shaders/reproject.vs.glsl index 80fc3012..9c5f7f2a 100644 --- a/shaders/reproject.vs.glsl +++ b/shaders/reproject.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform mat4 uNewTransform; diff --git a/shaders/stencil.fs.glsl b/shaders/stencil.fs.glsl index 194b83b4..a3ab4d06 100644 --- a/shaders/stencil.fs.glsl +++ b/shaders/stencil.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif out vec4 oFragColor; diff --git a/shaders/stencil.vs.glsl b/shaders/stencil.vs.glsl index 1d8a077e..0f66d530 100644 --- a/shaders/stencil.vs.glsl +++ b/shaders/stencil.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif in vec3 aPosition; diff --git a/shaders/tile.fs.glsl b/shaders/tile.fs.glsl index 3e137abd..487fcb5c 100644 --- a/shaders/tile.fs.glsl +++ b/shaders/tile.fs.glsl @@ -34,7 +34,10 @@ #extension GL_GOOGLE_include_directive : enable precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif #define EPSILON 0.00001 diff --git a/shaders/tile.vs.glsl b/shaders/tile.vs.glsl index 9c38aded..3366e129 100644 --- a/shaders/tile.vs.glsl +++ b/shaders/tile.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform mat4 uTransform; uniform vec2 uTileSize; diff --git a/shaders/tile_clip.fs.glsl b/shaders/tile_clip.fs.glsl index 4c10f65d..e6c7b6ad 100644 --- a/shaders/tile_clip.fs.glsl +++ b/shaders/tile_clip.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform sampler2D uSrc; diff --git a/shaders/tile_clip.vs.glsl b/shaders/tile_clip.vs.glsl index 38a8c450..47186462 100644 --- a/shaders/tile_clip.vs.glsl +++ b/shaders/tile_clip.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif in ivec2 aTileOffset; in ivec2 aDestTileOrigin; diff --git a/shaders/tile_copy.fs.glsl b/shaders/tile_copy.fs.glsl index 1103d069..bad183c0 100644 --- a/shaders/tile_copy.fs.glsl +++ b/shaders/tile_copy.fs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform vec2 uFramebufferSize; uniform sampler2D uSrc; diff --git a/shaders/tile_copy.vs.glsl b/shaders/tile_copy.vs.glsl index d281e864..6b9971d2 100644 --- a/shaders/tile_copy.vs.glsl +++ b/shaders/tile_copy.vs.glsl @@ -11,7 +11,10 @@ // except according to those terms. precision highp float; + +#ifdef GL_ES precision highp sampler2D; +#endif uniform mat4 uTransform; uniform vec2 uTileSize;