blob: 59678d5753bf86ef67eecc34561f6eca65e7ec83 [file] [log] [blame] [edit]
//
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// VertexArrayNULL.cpp:
// Implements the class methods for VertexArrayNULL.
//
#ifdef UNSAFE_BUFFERS_BUILD
# pragma allow_unsafe_libc_calls
#endif
#include "libANGLE/renderer/null/VertexArrayNULL.h"
#include "common/debug.h"
namespace rx
{
VertexArrayNULL::VertexArrayNULL(const gl::VertexArrayState &data,
const gl::VertexArrayBuffers &vertexArrayBuffers)
: VertexArrayImpl(data, vertexArrayBuffers)
{}
angle::Result VertexArrayNULL::syncState(const gl::Context *context,
const gl::VertexArray::DirtyBits &dirtyBits,
gl::VertexArray::DirtyAttribBitsArray *attribBits,
gl::VertexArray::DirtyBindingBitsArray *bindingBits)
{
// Clear the dirty bits in the back-end here.
memset(attribBits, 0, sizeof(gl::VertexArray::DirtyAttribBitsArray));
memset(bindingBits, 0, sizeof(gl::VertexArray::DirtyBindingBitsArray));
return angle::Result::Continue;
}
} // namespace rx