Chromium Code Reviews| Index: ui/gl/gl_surface_osmesa.cc |
| diff --git a/ui/gl/gl_surface_osmesa.cc b/ui/gl/gl_surface_osmesa.cc |
| index 7994eec379187df5b0838ab1f7749615d8fff3ae..980b28f0b019323165a20ba19e0f3f5bcbb7e8ac 100644 |
| --- a/ui/gl/gl_surface_osmesa.cc |
| +++ b/ui/gl/gl_surface_osmesa.cc |
| @@ -23,7 +23,7 @@ void GLSurfaceOSMesa::Destroy() { |
| } |
| bool GLSurfaceOSMesa::Resize(const gfx::Size& new_size) { |
| - GLContext* current_context = GLContext::GetCurrent(); |
| + GLContext* current_context = GLContext::GetRealCurrent(); |
|
no sievers
2013/05/24 21:48:06
Wait, why does this have to get the real context h
jonathan.backer
2013/05/27 16:37:36
AFAICT, this code it about resizing a buffer that
|
| bool was_current = current_context && current_context->IsCurrent(this); |
| if (was_current) |
| current_context->ReleaseCurrent(this); |