| Index: content/common/gpu/image_transport_surface.cc
|
| diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
|
| index 0ea39f50a1764bdfa4b73a7866e30703adeda66a..c06b1ccbba8e0a79bc8830303b6a55a548ae19ad 100644
|
| --- a/content/common/gpu/image_transport_surface.cc
|
| +++ b/content/common/gpu/image_transport_surface.cc
|
| @@ -222,7 +222,8 @@ void ImageTransportHelper::Resize(gfx::Size size) {
|
| // decoder so that future calls to MakeCurrent do not early out on the
|
| // assumption that neither the context or surface have actually changed.
|
| #if defined(OS_WIN)
|
| - Decoder()->ReleaseCurrent();
|
| + if (handle_ != NULL)
|
| + Decoder()->ReleaseCurrent();
|
| #endif
|
|
|
| surface_->OnResize(size);
|
| @@ -232,8 +233,10 @@ void ImageTransportHelper::Resize(gfx::Size size) {
|
| #endif
|
|
|
| #if defined(OS_WIN)
|
| - Decoder()->MakeCurrent();
|
| - SetSwapInterval(Decoder()->GetGLContext());
|
| + if (handle_ != NULL) {
|
| + Decoder()->MakeCurrent();
|
| + SetSwapInterval(Decoder()->GetGLContext());
|
| + }
|
| #endif
|
| }
|
|
|
|
|