]> git.cworth.org Git - apitrace/blobdiff - wrappers/gltrace_state.cpp
mt trace: create gltrace_state.cpp, move getContext into it
[apitrace] / wrappers / gltrace_state.cpp
diff --git a/wrappers/gltrace_state.cpp b/wrappers/gltrace_state.cpp
new file mode 100644 (file)
index 0000000..6b73d7a
--- /dev/null
@@ -0,0 +1,10 @@
+#include <gltrace.hpp>
+
+gltrace::Context *
+gltrace::getContext(void)
+{
+    // TODO return the context set by other APIs (GLX, EGL, and etc.)
+    static gltrace::Context _ctx = { gltrace::PROFILE_COMPAT, false, false, false };
+    return &_ctx;
+}
+