summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/gltrace.hpp3
-rw-r--r--wrappers/gltrace_state.cpp2
2 files changed, 5 insertions, 0 deletions
diff --git a/wrappers/gltrace.hpp b/wrappers/gltrace.hpp
index 7e05ad69..09aa71b8 100644
--- a/wrappers/gltrace.hpp
+++ b/wrappers/gltrace.hpp
@@ -86,6 +86,9 @@ public:
class Context {
public:
glfeatures::Profile profile;
+ glfeatures::Extensions extensions;
+ glfeatures::Features features;
+
bool user_arrays;
bool user_arrays_nv;
bool userArraysOnBegin;
diff --git a/wrappers/gltrace_state.cpp b/wrappers/gltrace_state.cpp
index be029fdd..c742e897 100644
--- a/wrappers/gltrace_state.cpp
+++ b/wrappers/gltrace_state.cpp
@@ -142,6 +142,8 @@ void setContext(uintptr_t context_id)
if (!ctx->bound) {
ctx->profile = glfeatures::getCurrentContextProfile();
+ ctx->extensions.getCurrentContextExtensions(ctx->profile);
+ ctx->features.load(ctx->profile, ctx->extensions);
/*
* The default viewport and scissor state is set when a context is