Keep state up to date after bindBufferBase/Range

Missing state tracking in StateManagerGL::bindBufferBase and
bindBufferRange.

Bug: angleprojects:3900
Change-Id: Ibaa4731962532f85b3e8a34d974c308d72b20a7f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1838452
Reviewed-by: Geoff Lang <[email protected]>
Commit-Queue: Jonah Ryan-Davis <[email protected]>
This commit is contained in:
Jonah Ryan-Davis authored and Commit Bot committed 2019-10-03 19:44:33 +00:00
1 parent c847a75f95
commit 588ba833e1
1 file changed
+2
@@ -386,6 +386,7 @@ void StateManagerGL::bindBufferBase(gl::BufferBinding target, size_t index, GLui
binding.buffer = buffer;
binding.offset = static_cast<size_t>(-1);
binding.size = static_cast<size_t>(-1);
mBuffers[target] = buffer;
mFunctions->bindBufferBase(gl::ToGLenum(target), static_cast<GLuint>(index), buffer);
}
}
@@ -402,6 +403,7 @@ void StateManagerGL::bindBufferRange(gl::BufferBinding target,
binding.buffer = buffer;
binding.offset = offset;
binding.size = size;
mBuffers[target] = buffer;
mFunctions->bindBufferRange(gl::ToGLenum(target), static_cast<GLuint>(index), buffer,
offset, size);
}