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

Unified Diff: ui/gl/gl_context_wgl.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_context_wgl.cc
diff --git a/ui/gl/gl_context_wgl.cc b/ui/gl/gl_context_wgl.cc
index 8ee90dd8ff3b0e72e04a4ab52e67156a021dd724..43e6db69f7aaec4ec2753f91377f1c0a9d795bf0 100644
--- a/ui/gl/gl_context_wgl.cc
+++ b/ui/gl/gl_context_wgl.cc
@@ -92,6 +92,7 @@ bool GLContextWGL::MakeCurrent(GLSurface* surface) {
if (!surface->OnMakeCurrent(this)) {
LOG(ERROR) << "Could not make current.";
+ ReleaseCurrent(surface);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698