| Index: Source/core/html/canvas/WebGLFramebuffer.cpp
|
| diff --git a/Source/core/html/canvas/WebGLFramebuffer.cpp b/Source/core/html/canvas/WebGLFramebuffer.cpp
|
| index 2eadbeb7069d449bda91c37609322c21c72963a3..3716f8aa3865971e1d0d7370363ce3d4f7f06437 100644
|
| --- a/Source/core/html/canvas/WebGLFramebuffer.cpp
|
| +++ b/Source/core/html/canvas/WebGLFramebuffer.cpp
|
| @@ -263,7 +263,7 @@ WebGLFramebuffer::WebGLFramebuffer(WebGLRenderingContextBase* ctx)
|
| , m_hasEverBeenBound(false)
|
| {
|
| ScriptWrappable::init(this);
|
| - setObject(ctx->webGraphicsContext3D()->createFramebuffer());
|
| + setObject(ctx->webContext()->createFramebuffer());
|
| }
|
|
|
| WebGLFramebuffer::~WebGLFramebuffer()
|
| @@ -302,7 +302,7 @@ void WebGLFramebuffer::attach(GLenum attachment, GLenum attachmentPoint)
|
| ASSERT(isBound());
|
| WebGLAttachment* attachmentObject = getAttachment(attachment);
|
| if (attachmentObject)
|
| - attachmentObject->attach(context()->webGraphicsContext3D(), attachmentPoint);
|
| + attachmentObject->attach(context()->webContext(), attachmentPoint);
|
| }
|
|
|
| WebGLSharedObject* WebGLFramebuffer::getAttachmentObject(GLenum attachment) const
|
| @@ -413,7 +413,7 @@ void WebGLFramebuffer::removeAttachmentFromBoundFramebuffer(GLenum attachment)
|
|
|
| WebGLAttachment* attachmentObject = getAttachment(attachment);
|
| if (attachmentObject) {
|
| - attachmentObject->onDetached(context()->webGraphicsContext3D());
|
| + attachmentObject->onDetached(context()->webContext());
|
| m_attachments.remove(attachment);
|
| drawBuffersIfNecessary(false);
|
| switch (attachment) {
|
| @@ -446,7 +446,7 @@ void WebGLFramebuffer::removeAttachmentFromBoundFramebuffer(WebGLSharedObject* a
|
| WebGLAttachment* attachmentObject = it->value.get();
|
| if (attachmentObject->isSharedObject(attachment)) {
|
| GLenum attachmentType = it->key;
|
| - attachmentObject->unattach(context()->webGraphicsContext3D(), attachmentType);
|
| + attachmentObject->unattach(context()->webContext(), attachmentType);
|
| removeAttachmentFromBoundFramebuffer(attachmentType);
|
| checkMore = true;
|
| break;
|
| @@ -601,7 +601,7 @@ void WebGLFramebuffer::drawBuffersIfNecessary(bool force)
|
| }
|
| }
|
| if (reset) {
|
| - context()->webGraphicsContext3D()->drawBuffersEXT(
|
| + context()->webContext()->drawBuffersEXT(
|
| m_filteredDrawBuffers.size(), m_filteredDrawBuffers.data());
|
| }
|
| }
|
|
|