From 7b9dd1bc16f81ae4cd196ceba1df5051b7980fe9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 13 Nov 2022 09:19:39 +0100 Subject: shader: more relaxed version check --- shaders/tile.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'shaders') 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); -- cgit v1.2.3