diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 20:52:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 21:17:45 +0300 |
commit | c5c6b5ddb31c8a79667d6dcd689808efd3dadd8a (patch) | |
tree | 4c161f2683d9f38d881c128b8628418d9515e274 /source/blender/gpu/intern/gpu_capabilities.cc | |
parent | d2911124f42fd58d42b1b734c852980d5dbde401 (diff) |
GPUCapabilities: Isolate GL_STEREO to GLContext
This is part of the Vulkan task T68990
This is a simple cleanup.
Diffstat (limited to 'source/blender/gpu/intern/gpu_capabilities.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_capabilities.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_capabilities.cc b/source/blender/gpu/intern/gpu_capabilities.cc index 83b9597abbb..71bf479b4a8 100644 --- a/source/blender/gpu/intern/gpu_capabilities.cc +++ b/source/blender/gpu/intern/gpu_capabilities.cc @@ -143,9 +143,7 @@ void GPU_mem_stats_get(int *totalmem, int *freemem) /* Return support for the active context + window. */ bool GPU_stereo_quadbuffer_support(void) { - GLboolean stereo = GL_FALSE; - glGetBooleanv(GL_STEREO, &stereo); - return stereo == GL_TRUE; + return GPU_context_active_get()->front_right != nullptr; } /** \} */ |