summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-13 09:19:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-13 09:19:51 +0100
commit7b9dd1bc16f81ae4cd196ceba1df5051b7980fe9 (patch)
tree0eed717e8bacc8546c6ead8bfea858f9e483b139 /shaders
parent549702d30c6600dfb129819dd5187245c766a778 (diff)
shader: more relaxed version check
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/shaders/tile.cpp b/shaders/tile.cpp
index ade9b5a1..bc5de830 100644
--- a/shaders/tile.cpp
+++ b/shaders/tile.cpp
@@ -13,9 +13,8 @@ namespace floormat {
tile_shader::tile_shader()
{
- using V = GL::Version;
- constexpr V min_version = GL::Version::GL430;
- const auto version = GL::Context::current().supportedVersion({ V::GL460, V::GL450, V::GL440, V::GL430, });
+ constexpr auto min_version = GL::Version::GL330;
+ const auto version = GL::Context::current().version();
if (version < min_version)
fm_abort("floormat requires OpenGL version %d, only %d is supported", (int)min_version, (int)version);