Chromium Code Reviews| Index: Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp |
| diff --git a/Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp b/Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp |
| index b18d65b1a4aa16514c1ac190f7ef1d36b9ec8831..2fb238f5697f40d5c3af35a2e0880238bd5df747 100644 |
| --- a/Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp |
| +++ b/Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp |
| @@ -32,6 +32,7 @@ |
| #include "core/platform/graphics/GraphicsContext3D.h" |
| #include "core/platform/graphics/filters/custom/CustomFilterMesh.h" |
| #include "platform/graphics/filters/custom/CustomFilterMeshGenerator.h" |
| +#include "third_party/khronos/GLES2/gl2.h" |
|
Ken Russell (switch to Gerrit)
2013/12/06 23:45:20
Should be unnecessary.
|
| namespace WebCore { |
| @@ -50,12 +51,12 @@ CustomFilterMesh::CustomFilterMesh(GraphicsContext3D* context, unsigned columns, |
| m_context->makeContextCurrent(); |
| m_verticesBufferObject = m_context->createBuffer(); |
| - m_context->bindBuffer(GraphicsContext3D::ARRAY_BUFFER, m_verticesBufferObject); |
| - m_context->bufferData(GraphicsContext3D::ARRAY_BUFFER, generator.vertices().size() * sizeof(float), generator.vertices().data(), GraphicsContext3D::STATIC_DRAW); |
| + m_context->bindBuffer(GL_ARRAY_BUFFER, m_verticesBufferObject); |
| + m_context->bufferData(GL_ARRAY_BUFFER, generator.vertices().size() * sizeof(float), generator.vertices().data(), GL_STATIC_DRAW); |
| m_elementsBufferObject = m_context->createBuffer(); |
| - m_context->bindBuffer(GraphicsContext3D::ELEMENT_ARRAY_BUFFER, m_elementsBufferObject); |
| - m_context->bufferData(GraphicsContext3D::ELEMENT_ARRAY_BUFFER, generator.indices().size() * sizeof(uint16_t), generator.indices().data(), GraphicsContext3D::STATIC_DRAW); |
| + m_context->bindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_elementsBufferObject); |
| + m_context->bufferData(GL_ELEMENT_ARRAY_BUFFER, generator.indices().size() * sizeof(uint16_t), generator.indices().data(), GL_STATIC_DRAW); |
| } |
| CustomFilterMesh::~CustomFilterMesh() |