| Index: Source/core/html/canvas/WebGLRenderingContext.cpp
|
| diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| index 447cbb56c1076a1e00f5f3523516a84088e46dd1..0acd9acc58d03f2c7925b5dea873d4794c12e6db 100644
|
| --- a/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| +++ b/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| @@ -3090,7 +3090,7 @@ void WebGLRenderingContext::readPixels(GLint x, GLint y, GLsizei width, GLsizei
|
| return;
|
| }
|
| // Validate array type against pixel type.
|
| - if (pixels->getType() != ArrayBufferView::TypeUint8) {
|
| + if (pixels->type() != ArrayBufferView::TypeUint8) {
|
| synthesizeGLError(GL_INVALID_OPERATION, "readPixels", "ArrayBufferView not Uint8Array");
|
| return;
|
| }
|
| @@ -4757,7 +4757,7 @@ bool WebGLRenderingContext::validateTexFuncData(const char* functionName, GLint
|
|
|
| switch (type) {
|
| case GL_UNSIGNED_BYTE:
|
| - if (pixels->getType() != ArrayBufferView::TypeUint8) {
|
| + if (pixels->type() != ArrayBufferView::TypeUint8) {
|
| synthesizeGLError(GL_INVALID_OPERATION, functionName, "type UNSIGNED_BYTE but ArrayBufferView not Uint8Array");
|
| return false;
|
| }
|
| @@ -4765,13 +4765,13 @@ bool WebGLRenderingContext::validateTexFuncData(const char* functionName, GLint
|
| case GL_UNSIGNED_SHORT_5_6_5:
|
| case GL_UNSIGNED_SHORT_4_4_4_4:
|
| case GL_UNSIGNED_SHORT_5_5_5_1:
|
| - if (pixels->getType() != ArrayBufferView::TypeUint16) {
|
| + if (pixels->type() != ArrayBufferView::TypeUint16) {
|
| synthesizeGLError(GL_INVALID_OPERATION, functionName, "type UNSIGNED_SHORT but ArrayBufferView not Uint16Array");
|
| return false;
|
| }
|
| break;
|
| case GL_FLOAT: // OES_texture_float
|
| - if (pixels->getType() != ArrayBufferView::TypeFloat32) {
|
| + if (pixels->type() != ArrayBufferView::TypeFloat32) {
|
| synthesizeGLError(GL_INVALID_OPERATION, functionName, "type FLOAT but ArrayBufferView not Float32Array");
|
| return false;
|
| }
|
|
|