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

Unified Diff: gpu/demos/framework/plugin.cc

Issue 553050: Windows now uses the TLS API instead of __declspec(thread) for client side co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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: gpu/demos/framework/plugin.cc
===================================================================
--- gpu/demos/framework/plugin.cc (revision 37151)
+++ gpu/demos/framework/plugin.cc (working copy)
@@ -92,7 +92,11 @@
}
Plugin::~Plugin() {
+ // Destroy demo while GL context is current and before it is destroyed.
+ pglMakeCurrent(pgl_context_);
+ demo_.reset();
alokp 2010/01/27 05:30:19 may be demo_.release() is clearer.
pglMakeCurrent(NULL);
+
pglDestroyContext(pgl_context_);
}

Powered by Google App Engine
This is Rietveld 408576698