summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/libANGLE/renderer
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-16 01:31:47 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-16 01:31:47 +0100
commit058105eec0564943dd872a7ae43cd8a5b94f0abf (patch)
treeed85f6708c7cc4a42dabd07d855f1e8f38ffc23c /gfx/angle/src/libANGLE/renderer
parent82804d200236658ba6dfaa814d6e71661781fe19 (diff)
downloadUXP-058105eec0564943dd872a7ae43cd8a5b94f0abf.tar
UXP-058105eec0564943dd872a7ae43cd8a5b94f0abf.tar.gz
UXP-058105eec0564943dd872a7ae43cd8a5b94f0abf.tar.lz
UXP-058105eec0564943dd872a7ae43cd8a5b94f0abf.tar.xz
UXP-058105eec0564943dd872a7ae43cd8a5b94f0abf.zip
Issue #1354 - Cherry-pick ANGLE update for broken drivers that support
required indexing but not the extensions.
Diffstat (limited to 'gfx/angle/src/libANGLE/renderer')
-rwxr-xr-xgfx/angle/src/libANGLE/renderer/gl/renderergl_utils.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/gfx/angle/src/libANGLE/renderer/gl/renderergl_utils.cpp b/gfx/angle/src/libANGLE/renderer/gl/renderergl_utils.cpp
index 87fd24a61..d65e00454 100755
--- a/gfx/angle/src/libANGLE/renderer/gl/renderergl_utils.cpp
+++ b/gfx/angle/src/libANGLE/renderer/gl/renderergl_utils.cpp
@@ -543,16 +543,11 @@ void GenerateCaps(const FunctionsGL *functions, gl::Caps *caps, gl::TextureCapsM
LimitVersion(maxSupportedESVersion, gl::Version(2, 0));
}
- // Check if index constant sampler array indexing is supported
- if (!functions->isAtLeastGL(gl::Version(4, 0)) &&
- !functions->isAtLeastGLES(gl::Version(2, 0)) &&
- !functions->hasExtension("GL_ARB_gpu_shader5"))
- {
- // This should also be required for ES2 but there are some driver support index constant
- // sampler array indexing without meeting the requirements above. Don't limit their ES
- // version as it would break WebGL for some users.
- LimitVersion(maxSupportedESVersion, gl::Version(2, 0));
- }
+ // Non-constant sampler array indexing is required for OpenGL ES 2 and OpenGL ES after 3.2.
+ // However having it available on OpenGL ES 2 is a specification bug, and using this
+ // indexing in WebGL is undefined. Requiring this feature would break WebGL 1 for some users
+ // so we don't check for it. (it is present with ESSL 100, ESSL >= 320, GLSL >= 400 and
+ // GL_ARB_gpu_shader5)
// Check if sampler objects are supported
if (!functions->isAtLeastGL(gl::Version(3, 3)) &&