From 07e9855f0eb70dfea2130948cbb88059e58757e8 Mon Sep 17 00:00:00 2001 From: Baldur Karlsson Date: Thu, 19 Jun 2014 15:23:01 +0100 Subject: [PATCH] Call GetRealFunctions on MakeCurrent to populate extensions. * Even if the app only queries some subset of extensions, we may need more (e.g. need the DSA extensions). GetRealFunctions does a PopulateHooks which will fill out the extensions that we need. --- renderdoc/hooks/gl_win32_hooks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renderdoc/hooks/gl_win32_hooks.cpp b/renderdoc/hooks/gl_win32_hooks.cpp index d842508d9..0ff86e53a 100644 --- a/renderdoc/hooks/gl_win32_hooks.cpp +++ b/renderdoc/hooks/gl_win32_hooks.cpp @@ -339,6 +339,8 @@ class OpenGLHook : LibraryHook glhooks.GetDriver()->ActivateContext(WindowFromDC(dc), rc); + glhooks.GetRealFunctions(); + return ret; }