Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-07 20:52:22 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-07 21:17:45 +0300
commitc5c6b5ddb31c8a79667d6dcd689808efd3dadd8a (patch)
tree4c161f2683d9f38d881c128b8628418d9515e274 /source/blender/gpu/intern/gpu_capabilities.cc
parentd2911124f42fd58d42b1b734c852980d5dbde401 (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.cc4
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;
}
/** \} */