Fixes an improper comparison in map

TRAC #11649 Implementing this fix here because it's causing the glUniform conformance test not to pass. TranslatedBuffer would have problems during reloadCurrentValues because its required space and its current size were equal. Signed-off-by: Daniel Koch Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/trunk@99 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 29d56fbb
...@@ -16,7 +16,7 @@ namespace gl ...@@ -16,7 +16,7 @@ namespace gl
void *TranslatedBuffer::map(std::size_t requiredSpace, std::size_t *offset) void *TranslatedBuffer::map(std::size_t requiredSpace, std::size_t *offset)
{ {
ASSERT(requiredSpace < mBufferSize); ASSERT(requiredSpace <= mBufferSize);
reserveSpace(requiredSpace); reserveSpace(requiredSpace);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment