fix: Web version not starting anymore due to WebGL only supporting OpenGL 3.0

This commit is contained in:
Nik
2025-08-25 07:29:36 +02:00
committed by GitHub
parent ca323c392b
commit df2448e121

View File

@@ -79,10 +79,12 @@ namespace hex::init {
}
{
#if !defined(OS_MACOS)
const static auto MinGLVersion = SemanticVersion(3, 1, 0);
#else
#if defined(OS_MACOS)
const static auto MinGLVersion = SemanticVersion(3, 2, 0);
#elif defined(OS_WEB)
const static auto MinGLVersion = SemanticVersion(3, 0, 0);
#else
const static auto MinGLVersion = SemanticVersion(3, 1, 0);
#endif
const auto &glVersion = ImHexApi::System::getGLVersion();