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

Unified Diff: ui/gl/gl_gl_api_implementation.cc

Issue 16838007: Ensure real GL Api is set before making GL calls. (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
« ui/gl/gl_context_cgl.cc ('K') | « ui/gl/gl_context_wgl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9b0a89a39aa81d75f6c4413580c7190f1e79c1b0..802d250a37b65856943ec6cfad9a5465ea6986ad 100644
--- a/ui/gl/gl_gl_api_implementation.cc
+++ b/ui/gl/gl_gl_api_implementation.cc
@@ -195,6 +195,8 @@ GLApi::GLApi() {
}
GLApi::~GLApi() {
+ if (GetCurrentGLApi() == this)
+ SetGLApi(NULL);
}
GLApiBase::GLApiBase()
« ui/gl/gl_context_cgl.cc ('K') | « ui/gl/gl_context_wgl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698