diff options
Diffstat (limited to 'helpers/glfeatures.cpp')
-rw-r--r-- | helpers/glfeatures.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helpers/glfeatures.cpp b/helpers/glfeatures.cpp index 39531e71..e862b89e 100644 --- a/helpers/glfeatures.cpp +++ b/helpers/glfeatures.cpp @@ -356,6 +356,14 @@ Features::load(const Profile & profile, const Extensions & ext) ext.has("GL_ARB_pixel_buffer_object") || ext.has("GL_EXT_pixel_buffer_object"); } + + if (profile.desktop()) { + query_buffer_object = profile.versionGreaterOrEqual(4, 4) || + ext.has("GL_ARB_query_buffer_object") || + ext.has("GL_AMD_query_buffer_object"); + } else { + query_buffer_object = 0; + } } |