Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: ui/gl/gl_gl_api_implementation.cc

Issue 16894002: Unset GL Api when releasing a context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_gl_api_implementation.cc
diff --git a/ui/gl/gl_gl_api_implementation.cc b/ui/gl/gl_gl_api_implementation.cc
index 802d250a37b65856943ec6cfad9a5465ea6986ad..b2de7cdea2fa35aa319c26e4a44229685e67f71b 100644
--- a/ui/gl/gl_gl_api_implementation.cc
+++ b/ui/gl/gl_gl_api_implementation.cc
@@ -162,7 +162,7 @@ GLApi* GetCurrentGLApi() {
}
void SetGLApi(GLApi* api) {
- g_current_gl_context = api;
+ g_current_gl_context_tls.Pointer()->Set(api);
}
void SetGLToRealGLApi() {
@@ -187,7 +187,6 @@ void ClearGLBindingsGL() {
g_trace_gl = NULL;
}
g_gl = NULL;
- g_current_gl_context = NULL;
g_driver_gl.ClearBindings();
}
« ui/gl/gl_bindings.h ('K') | « ui/gl/gl_context_wgl.cc ('k') | ui/gl/gl_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698