- added information about full OpenGL features support to survey code.

This commit is contained in:
Christoph Oelckers 2018-07-27 20:46:48 +02:00
parent 5011f1b33b
commit bb5dc92225

View file

@ -270,8 +270,12 @@ static int GetCoreInfo()
static int GetRenderInfo()
{
auto info = gl_getInfo();
if (info.first < 3.3) return 3; // Legacy OpenGL. Don't care about Intel HD 3000 on Windows being run in 'risky' mode.
if (!info.second) return 4;
if (info.first < 3.3) return 0;
if (!info.second)
{
if (screen->hwcaps & (RFL_SHADER_STORAGE_BUFFER | RFL_BUFFER_STORAGE) == RFL_SHADER_STORAGE_BUFFER | RFL_BUFFER_STORAGE) return 3;
return 4;
}
return 5;
}