Return gl::Error from VertexArray::syncState().
No functional change.
When we add vertex data format conversion to Vulkan we will need to be
able to return an error from VertexArray::syncState().
BUG=angleproject:2405
Change-Id: I4b537946ecbb6593280b6510c5cd8d8e3c65e8dd
Reviewed-on: https://chromium-review.googlesource.com/982897
Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
Reviewed-by: Luc Ferron <lucferron@chromium.org>
diff --git a/src/libANGLE/VertexArray.cpp b/src/libANGLE/VertexArray.cpp
index 1013774..19fedee 100644
--- a/src/libANGLE/VertexArray.cpp
+++ b/src/libANGLE/VertexArray.cpp
@@ -270,11 +270,12 @@
mDirtyBits.set(DIRTY_BIT_ELEMENT_ARRAY_BUFFER);
}
-void VertexArray::syncState(const Context *context)
+gl::Error VertexArray::syncState(const Context *context)
{
if (mDirtyBits.any())
{
- mVertexArray->syncState(context, mDirtyBits, mDirtyAttribBits, mDirtyBindingBits);
+ ANGLE_TRY(
+ mVertexArray->syncState(context, mDirtyBits, mDirtyAttribBits, mDirtyBindingBits));
mDirtyBits.reset();
// This is a bit of an implementation hack - but since we know the implementation
@@ -284,6 +285,7 @@
memset(&mDirtyAttribBits, 0, sizeof(mDirtyAttribBits));
memset(&mDirtyBindingBits, 0, sizeof(mDirtyBindingBits));
}
+ return gl::NoError();
}
void VertexArray::onBindingChanged(bool bound)