Commit a752b894 by Alexis Hetu Committed by Alexis Hétu

Fixed glFlushMappedBufferRange validation

Mistook "access" for "usage". Fixed. Change-Id: I8c61aa9dbc0ebd2a68f4363a1d59f9aae7dbc056 Reviewed-on: https://swiftshader-review.googlesource.com/14129Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 1c93b6c6
......@@ -1762,7 +1762,7 @@ GL_APICALL void GL_APIENTRY glFlushMappedBufferRange(GLenum target, GLintptr off
return error(GL_INVALID_VALUE);
}
if(!(buffer->usage() & GL_MAP_FLUSH_EXPLICIT_BIT))
if(!(buffer->access() & GL_MAP_FLUSH_EXPLICIT_BIT))
{
// Flush must be explicitly allowed
return error(GL_INVALID_OPERATION);
......
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