Skip to content

Commit

Permalink
Auto merge of servo#627 - mmatyas:shader_default_precision_error, r=g…
Browse files Browse the repository at this point in the history
…lennw

Fix default precision of `sampler2DArray`

This fixes the `no default precision defined for variable 'sCache'` error produced by Servo on Android.

Related: servo/servo#13154

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/627)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo authored Dec 12, 2016
2 parents f49ded1 + 660b3fd commit b7b211b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webrender/res/prim_shared.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
* 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/. */

#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp sampler2DArray;
#else
precision mediump sampler2DArray;
#endif

#define PST_TOP_LEFT 0
#define PST_TOP 1
#define PST_TOP_RIGHT 2
Expand Down

0 comments on commit b7b211b

Please sign in to comment.