summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-04-04 15:42:25 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-04-04 15:42:25 +0100
commit8d6653ac387e5fd1a2eae549239099a05e9cac03 (patch)
treede3bc8105dec54d3428df173827a6afc180e4b9c /wrappers
parent9ed6462ab512e967a7f7a1350f9eaaf74105c24d (diff)
helpers: Move GL extension cache object to glfeatures.
So it can be used in the wrappers too.
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