| Index: src/gpu/gl/GrGLVertexArray.cpp
|
| diff --git a/src/gpu/gl/GrGLVertexArray.cpp b/src/gpu/gl/GrGLVertexArray.cpp
|
| index 39fd48cb89e308dde363e6abc41e1709e18bbc62..4acf29235df39f30cb1b58a47a3bd2bc78aa7da0 100644
|
| --- a/src/gpu/gl/GrGLVertexArray.cpp
|
| +++ b/src/gpu/gl/GrGLVertexArray.cpp
|
| @@ -100,7 +100,7 @@ GrGLAttribArrayState* GrGLVertexArray::bind() {
|
|
|
| GrGLAttribArrayState* GrGLVertexArray::bindWithIndexBuffer(const GrGLIndexBuffer* buffer) {
|
| GrGLAttribArrayState* state = this->bind();
|
| - if (NULL != state && NULL != buffer) {
|
| + if (state && buffer) {
|
| GrGLuint bufferID = buffer->bufferID();
|
| if (!fIndexBufferIDIsValid || bufferID != fIndexBufferID) {
|
| GL_CALL(BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, bufferID));
|
|
|