Index: Source/core/html/canvas/WebGLFramebuffer.cpp |
diff --git a/Source/core/html/canvas/WebGLFramebuffer.cpp b/Source/core/html/canvas/WebGLFramebuffer.cpp |
index 0c4af1b282e59e650e9475f0a8d6e33f8a3e732f..14eaae23fa2cb01157da64665e799ed4b80bb9b8 100644 |
--- a/Source/core/html/canvas/WebGLFramebuffer.cpp |
+++ b/Source/core/html/canvas/WebGLFramebuffer.cpp |
@@ -29,7 +29,6 @@ |
#include "core/html/canvas/WebGLRenderingContext.h" |
#include "platform/NotImplemented.h" |
-#include "platform/graphics/Extensions3D.h" |
namespace WebCore { |
@@ -628,18 +627,18 @@ void WebGLFramebuffer::drawBuffersIfNecessary(bool force) |
} |
} |
if (reset) { |
- context()->graphicsContext3D()->extensions()->drawBuffersEXT( |
+ context()->webGraphicsContext3D()->drawBuffersEXT( |
m_filteredDrawBuffers.size(), m_filteredDrawBuffers.data()); |
} |
} |
GLenum WebGLFramebuffer::getDrawBuffer(GLenum drawBuffer) |
{ |
- int index = static_cast<int>(drawBuffer - Extensions3D::DRAW_BUFFER0_EXT); |
+ int index = static_cast<int>(drawBuffer - GL_DRAW_BUFFER0_EXT); |
ASSERT(index >= 0); |
if (index < static_cast<int>(m_drawBuffers.size())) |
return m_drawBuffers[index]; |
- if (drawBuffer == Extensions3D::DRAW_BUFFER0_EXT) |
+ if (drawBuffer == GL_DRAW_BUFFER0_EXT) |
return GL_COLOR_ATTACHMENT0; |
return GL_NONE; |
} |