diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-04-10 22:54:37 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-04-10 22:54:37 +0100 |
commit | cc710e8abe0ecd7544268fd525dda61fd2cfecf9 (patch) | |
tree | f2362538d8e657639e3693bad9e9b6e81c3a2cd7 /helpers | |
parent | 9c6d2c8baf85c8a24051befb1b2e05cd360374d2 (diff) |
glstate: More accurately check for READ_BUFFER/ReadBuffer support.
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/glfeatures.cpp | 5 | ||||
-rw-r--r-- | helpers/glfeatures.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
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; |