summaryrefslogtreecommitdiff
path: root/gfx/gl/GLContextFeatures.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-16 01:40:30 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-16 01:40:30 +0100
commit7007ec9e42bf443566846296aa70aba47ee9feb3 (patch)
treead5cae07003480fdf2de3ffbd80af5f8644ab39d /gfx/gl/GLContextFeatures.cpp
parent058105eec0564943dd872a7ae43cd8a5b94f0abf (diff)
downloaduxp-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.cpp12
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,