You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto glslVersion = Renderer::Shader::GetShaderLanguageVersion();
222
+
223
+
if (glslVersion.major == 0)
224
+
{
225
+
std::string error = "Could not retrieve OpenGL shader language version. Is OpenGL available and the context initialized?";
226
+
LOG_FATAL(error);
227
+
throwstd::runtime_error(error);
228
+
}
229
+
#ifdef USE_GLES
230
+
if (glslVersion.major < 3)
231
+
{
232
+
std::string error = "OpenGL ES shading language version 3.00 or higher is required, but the current context only provides version " + std::to_string(glslVersion.major) + "." + std::to_string(glslVersion.minor) + ".";
std::string error = "OpenGL shading language version 3.30 or higher is required, but the current context only provides version " + std::to_string(glslVersion.major) + "." + std::to_string(glslVersion.minor) + ".";
0 commit comments