summaryrefslogtreecommitdiff
path: root/retrace/glretrace_ws.cpp
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-08-06 13:57:06 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-08-06 13:57:31 +0100
commitcda621d515bbb9d425b25fde3a7cfde7bba64c3f (patch)
tree35312e231f334bb7b9853cac860d03a2a8fdc4f0 /retrace/glretrace_ws.cpp
parent12b821715ab9e67a8dd86cb366bdfec87150cceb (diff)
glretrace: Make getCurrentContext an inline function.
As it is now used frequently.
Diffstat (limited to 'retrace/glretrace_ws.cpp')
-rw-r--r--retrace/glretrace_ws.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/retrace/glretrace_ws.cpp b/retrace/glretrace_ws.cpp
index 4235ba98..88d5ac88 100644
--- a/retrace/glretrace_ws.cpp
+++ b/retrace/glretrace_ws.cpp
@@ -140,7 +140,7 @@ Context::~Context()
}
-static OS_THREAD_SPECIFIC_PTR(Context)
+OS_THREAD_SPECIFIC_PTR(Context)
currentContextPtr;
@@ -185,12 +185,6 @@ makeCurrent(trace::Call &call, glws::Drawable *drawable, Context *context)
}
-Context *
-getCurrentContext(void) {
- return currentContextPtr;
-}
-
-
/**
* Grow the current drawble.
*