From bb5dc92225d33743246e9f0427bbc96653efc9c6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 Jul 2018 20:46:48 +0200 Subject: [PATCH] - added information about full OpenGL features support to survey code. --- src/d_anonstats.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/d_anonstats.cpp b/src/d_anonstats.cpp index 97f5ae7486..e253e9c2b1 100644 --- a/src/d_anonstats.cpp +++ b/src/d_anonstats.cpp @@ -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; }