diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-16 17:09:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-16 17:09:57 +0200 |
commit | f2764dd15da8c71f8ae3ccb20d7b503bc833a543 (patch) | |
tree | a518ec20c4c45560cc47db23293a742e15d079df /drivers | |
parent | a8ceb54abf55ddbc3b7148c1d149bf525348aa60 (diff) | |
parent | 2d48f4ecf1770cc48274c65051b4c3cc0748ddda (diff) |
Merge pull request #10343 from Faless/html5_fixes_2
Use precision for samples only when #version 300 es
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/shader_gles3.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gles3/shader_gles3.cpp b/drivers/gles3/shader_gles3.cpp index 77e257dfc8..e7a26c0354 100644 --- a/drivers/gles3/shader_gles3.cpp +++ b/drivers/gles3/shader_gles3.cpp @@ -273,9 +273,11 @@ ShaderGLES3::Version *ShaderGLES3::get_current_version() { //vertex precision is high strings.push_back("precision highp float;\n"); strings.push_back("precision highp int;\n"); +#ifndef GLES_OVER_GL strings.push_back("precision highp sampler2D;\n"); strings.push_back("precision highp samplerCube;\n"); strings.push_back("precision highp sampler2DArray;\n"); +#endif #if 0 if (cc) { @@ -374,9 +376,11 @@ ShaderGLES3::Version *ShaderGLES3::get_current_version() { //fragment precision is medium strings.push_back("precision highp float;\n"); strings.push_back("precision highp int;\n"); +#ifndef GLES_OVER_GL strings.push_back("precision highp sampler2D;\n"); strings.push_back("precision highp samplerCube;\n"); strings.push_back("precision highp sampler2DArray;\n"); +#endif #if 0 if (cc) { |