diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-16 01:40:30 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-16 01:40:30 +0100 |
commit | 7007ec9e42bf443566846296aa70aba47ee9feb3 (patch) | |
tree | ad5cae07003480fdf2de3ffbd80af5f8644ab39d /gfx/gl/GLContextFeatures.cpp | |
parent | 058105eec0564943dd872a7ae43cd8a5b94f0abf (diff) | |
download | uxp-7007ec9e42bf443566846296aa70aba47ee9feb3.tar.gz |
Issue #1354 - Don't allow glsl[130,400] unless we have gpu_shader5
- Teach GLContext about gpu_shader5
- Downgrade shader language version if gpu_shader5 support isn't found.
Diffstat (limited to 'gfx/gl/GLContextFeatures.cpp')
-rw-r--r-- | gfx/gl/GLContextFeatures.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx/gl/GLContextFeatures.cpp b/gfx/gl/GLContextFeatures.cpp index 0714d96415..d4f37803f2 100644 --- a/gfx/gl/GLContextFeatures.cpp +++ b/gfx/gl/GLContextFeatures.cpp @@ -332,6 +332,18 @@ static const FeatureInfo sFeatureInfoArr[] = { } }, { + "gpu_shader5", + GLVersion::GL4, + GLESVersion::NONE, + GLContext::Extension_None, + { + GLContext::ARB_gpu_shader5, + GLContext::EXT_gpu_shader5, + GLContext::NV_gpu_shader5, + GLContext::Extensions_End + } + }, + { "instanced_arrays", GLVersion::GL3_3, GLESVersion::ES3, |