From cc710e8abe0ecd7544268fd525dda61fd2cfecf9 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Sun, 10 Apr 2016 22:54:37 +0100 Subject: glstate: More accurately check for READ_BUFFER/ReadBuffer support. --- helpers/glfeatures.cpp | 5 +++++ helpers/glfeatures.hpp | 1 + 2 files changed, 6 insertions(+) (limited to 'helpers') diff --git a/helpers/glfeatures.cpp b/helpers/glfeatures.cpp index 0f4945dd..2a5b1aae 100644 --- a/helpers/glfeatures.cpp +++ b/helpers/glfeatures.cpp @@ -353,6 +353,8 @@ Features::load(const Profile & profile, const Extensions & ext) ext.has("GL_ARB_pixel_buffer_object") || ext.has("GL_EXT_pixel_buffer_object"); + read_buffer = 1; + framebuffer_object = profile.versionGreaterOrEqual(3, 0) || ext.has("GL_ARB_framebuffer_object") || ext.has("GL_EXT_framebuffer_object"); @@ -365,6 +367,9 @@ Features::load(const Profile & profile, const Extensions & ext) pixel_buffer_object = profile.versionGreaterOrEqual(3, 1) || ext.has("GL_NV_pixel_buffer_object"); + read_buffer = ext.has("GL_EXT_multiview_draw_buffers") || + ext.has("GL_NV_read_buffer"); + framebuffer_object = profile.versionGreaterOrEqual(2, 0) || ext.has("GL_OES_framebuffer_object"); diff --git a/helpers/glfeatures.hpp b/helpers/glfeatures.hpp index e8f9b9c9..5c7bb193 100644 --- a/helpers/glfeatures.hpp +++ b/helpers/glfeatures.hpp @@ -156,6 +156,7 @@ struct Features unsigned ARB_program_interface_query:1; unsigned pixel_buffer_object:1; + unsigned read_buffer:1; unsigned framebuffer_object:1; unsigned read_framebuffer_object:1; unsigned query_buffer_object:1; -- cgit v1.2.3