| Index: Source/platform/graphics/ImageBuffer.cpp
|
| diff --git a/Source/platform/graphics/ImageBuffer.cpp b/Source/platform/graphics/ImageBuffer.cpp
|
| index 0defbb08d07d60222c6ee2c08ae57350c93dfe0e..9013e254983427c6a4e0cd935d346d811985e842 100644
|
| --- a/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -180,7 +180,7 @@ bool ImageBuffer::copyToPlatformTexture(WebGraphicsContext3D* context, Platform3
|
| if (!provider)
|
| return false;
|
| WebGraphicsContext3D* sharedContext = provider->context3d();
|
| - if (!sharedContext || !sharedContext->makeContextCurrent())
|
| + if (!sharedContext)
|
| return false;
|
|
|
| OwnPtr<WebExternalTextureMailbox> mailbox = adoptPtr(new WebExternalTextureMailbox);
|
| @@ -192,9 +192,6 @@ bool ImageBuffer::copyToPlatformTexture(WebGraphicsContext3D* context, Platform3
|
|
|
| mailbox->syncPoint = sharedContext->insertSyncPoint();
|
|
|
| - if (!context->makeContextCurrent())
|
| - return false;
|
| -
|
| context->waitSyncPoint(mailbox->syncPoint);
|
| Platform3DObject sourceTexture = context->createAndConsumeTextureCHROMIUM(GL_TEXTURE_2D, mailbox->name);
|
|
|
|
|