| Index: Source/core/html/canvas/WebGL2RenderingContextBase.cpp
|
| diff --git a/Source/core/html/canvas/WebGL2RenderingContextBase.cpp b/Source/core/html/canvas/WebGL2RenderingContextBase.cpp
|
| index 4e025b4acbe8da5f8e6ac892706f3ae99d8f4600..f14e36dafd9908393305c042d52a0bccbf9b3387 100644
|
| --- a/Source/core/html/canvas/WebGL2RenderingContextBase.cpp
|
| +++ b/Source/core/html/canvas/WebGL2RenderingContextBase.cpp
|
| @@ -21,7 +21,7 @@
|
| #include "core/html/canvas/WebGLTexture.h"
|
| #include "core/html/canvas/WebGLTransformFeedback.h"
|
| #include "core/html/canvas/WebGLUniformLocation.h"
|
| -#include "core/html/canvas/WebGLVertexArrayObjectOES.h"
|
| +#include "core/html/canvas/WebGLVertexArrayObject.h"
|
|
|
| #include "platform/NotImplemented.h"
|
|
|
| @@ -61,6 +61,14 @@ void WebGL2RenderingContextBase::initializeNewContext()
|
| webContext()->getIntegerv(GL_MAX_3D_TEXTURE_SIZE, &m_max3DTextureSize);
|
| m_max3DTextureLevel = WebGLTexture::computeLevelCount(m_max3DTextureSize, m_max3DTextureSize, m_max3DTextureSize);
|
|
|
| + GLint numVertexAttribs = 0;
|
| + webContext()->getIntegerv(GL_MAX_VERTEX_ATTRIBS, &numVertexAttribs);
|
| + m_maxVertexAttribs = numVertexAttribs;
|
| +
|
| + m_defaultVertexArrayObject = WebGLVertexArrayObject::create(this, WebGLVertexArrayObjectBase::VaoTypeDefault);
|
| + addContextObject(m_defaultVertexArrayObject.get());
|
| + m_boundVertexArrayObject = m_defaultVertexArrayObject;
|
| +
|
| WebGLRenderingContextBase::initializeNewContext();
|
| }
|
|
|
| @@ -1374,17 +1382,17 @@ void WebGL2RenderingContextBase::uniformBlockBinding(WebGLProgram* program, GLui
|
| webContext()->uniformBlockBinding(objectOrZero(program), uniformBlockIndex, uniformBlockBinding);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<WebGLVertexArrayObjectOES> WebGL2RenderingContextBase::createVertexArray()
|
| +PassRefPtrWillBeRawPtr<WebGLVertexArrayObject> WebGL2RenderingContextBase::createVertexArray()
|
| {
|
| if (isContextLost())
|
| return nullptr;
|
|
|
| - RefPtrWillBeRawPtr<WebGLVertexArrayObjectOES> o = WebGLVertexArrayObjectOES::create(this, WebGLVertexArrayObjectOES::VaoTypeUser);
|
| + RefPtrWillBeRawPtr<WebGLVertexArrayObject> o = WebGLVertexArrayObject::create(this, WebGLVertexArrayObjectBase::VaoTypeUser);
|
| addContextObject(o.get());
|
| return o.release();
|
| }
|
|
|
| -void WebGL2RenderingContextBase::deleteVertexArray(WebGLVertexArrayObjectOES* vertexArray)
|
| +void WebGL2RenderingContextBase::deleteVertexArray(WebGLVertexArrayObject* vertexArray)
|
| {
|
| if (isContextLost() || !vertexArray)
|
| return;
|
| @@ -1395,7 +1403,7 @@ void WebGL2RenderingContextBase::deleteVertexArray(WebGLVertexArrayObjectOES* ve
|
| vertexArray->deleteObject(webContext());
|
| }
|
|
|
| -GLboolean WebGL2RenderingContextBase::isVertexArray(WebGLVertexArrayObjectOES* vertexArray)
|
| +GLboolean WebGL2RenderingContextBase::isVertexArray(WebGLVertexArrayObject* vertexArray)
|
| {
|
| if (isContextLost() || !vertexArray)
|
| return 0;
|
| @@ -1406,7 +1414,7 @@ GLboolean WebGL2RenderingContextBase::isVertexArray(WebGLVertexArrayObjectOES* v
|
| return webContext()->isVertexArrayOES(vertexArray->object());
|
| }
|
|
|
| -void WebGL2RenderingContextBase::bindVertexArray(WebGLVertexArrayObjectOES* vertexArray)
|
| +void WebGL2RenderingContextBase::bindVertexArray(WebGLVertexArrayObject* vertexArray)
|
| {
|
| if (isContextLost())
|
| return;
|
|
|