private static bool ValidateMinimumGPUSpec()
{
float shaderLanguageVersion;
if (float.TryParse(GL.GetString(StringName.ShadingLanguageVersion), out shaderLanguageVersion))
{
if (shaderLanguageVersion < DualityApp.AppData.MinimumShaderVersion)
{
NativeMethods.MessageBox(IntPtr.Zero,
string.Format(
@"Your graphics card is reported as '{0}', which does not meet the minimum specification to run Onikira.
If you are on a system with both a discreet and integrated GPU, try switching to your discreet or high-performance GPU in your graphics card's control panel and try to run the game again.", GL.GetString(StringName.Renderer)),
"GPU under minimum spec", 0);
return false;
}
}
return true;
}