Skip to content

Commit

Permalink
Work around an older mac shader compiler bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm authored Jan 11, 2017
1 parent ee79fc9 commit cc725ae
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions webrender/res/prim_shared.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#if defined(GL_ES) && GL_ES == 1
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp sampler2DArray;
#else
precision mediump sampler2DArray;
#if defined(GL_ES)
#if GL_ES == 1
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp sampler2DArray;
#else
precision mediump sampler2DArray;
#endif
#endif
#endif

Expand Down

0 comments on commit cc725ae

Please sign in to comment.