Fixes OpenGL ES rendering.

sampler2DArray doesn't have a default precision, so we need to set it ourselves.
This commit is contained in:
Ryan Houdek 2014-11-29 01:27:47 -06:00
parent f588a82b9a
commit 38dfc970df
1 changed files with 2 additions and 0 deletions

View File

@ -519,6 +519,7 @@ void ProgramShaderCache::CreateHeader()
// Precision defines for GLSL ES
"%s\n"
"%s\n"
"%s\n"
// Silly differences
"#define float2 vec2\n"
@ -551,6 +552,7 @@ void ProgramShaderCache::CreateHeader()
, v>=GLSLES_300 ? "precision highp float;" : ""
, v>=GLSLES_300 ? "precision highp int;" : ""
, v>=GLSLES_300 ? "precision highp sampler2DArray;" : ""
, DriverDetails::HasBug(DriverDetails::BUG_BROKENTEXTURESIZE) ? "#define textureSize(x, y) ivec2(1, 1)" : ""
, DriverDetails::HasBug(DriverDetails::BUG_BROKENCENTROID) ? "#define centroid" : ""