Skip to content

Commit

Permalink
GLES: Correct fragment precision check.
Browse files Browse the repository at this point in the history
Was breaking on Mali-4xx for example, because not defined.
  • Loading branch information
unknownbrackets committed Dec 24, 2018
1 parent e46701d commit 01809f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GPU/GLES/DepthBufferGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

static const char *depth_dl_fs = R"(
#ifdef GL_ES
#if GL_FRAGMENT_PRECISION_HIGH
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
Expand Down
2 changes: 1 addition & 1 deletion GPU/GLES/StencilBufferGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

static const char *stencil_fs = R"(
#ifdef GL_ES
#if GL_FRAGMENT_PRECISION_HIGH
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float; // just hope it's enough..
Expand Down

0 comments on commit 01809f8

Please sign in to comment.