Chromium Code Reviews| 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_); |
| } |