From 7245e9a6066655ff2aa881eb58df7121f5ad0e9e Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 20 Apr 2015 14:05:31 +0200 Subject: [PATCH] Report WGL_EXT_swap_control in the normal GL extension string --- renderdoc/driver/gl/gl_driver.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renderdoc/driver/gl/gl_driver.cpp b/renderdoc/driver/gl/gl_driver.cpp index f1612468c..7053d8857 100644 --- a/renderdoc/driver/gl/gl_driver.cpp +++ b/renderdoc/driver/gl/gl_driver.cpp @@ -560,6 +560,12 @@ WrappedOpenGL::WrappedOpenGL(const char *logfile, const GLHookSet &funcs) globalExts.push_back("GL_KHR_robustness"); globalExts.push_back("GL_KHR_robust_buffer_access_behavior"); + // this WGL extension is advertised in the gl ext string instead of via the wgl ext string, + // return it just in case anyone is checking for it via this place. On non-windows platforms + // it won't be reported as we do the intersection of renderdoc supported extensions and + // implementation supported extensions. + globalExts.push_back("WGL_EXT_swap_control"); + /************************************************************************ Extensions I plan to support, but haven't implemented yet for one reason or another.