Commit 146411a8 by Alexis Hetu Committed by Alexis Hétu

Added proper transform feedback checks to glDrawRangeElements

It is illegal to start a new draw operation while a transform feedback is active. Change-Id: I5ebb01889ce5154162a51f5e6cfbc8431554c879 Reviewed-on: https://swiftshader-review.googlesource.com/3549Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 395f00bc
...@@ -549,6 +549,12 @@ GL_APICALL void GL_APIENTRY glDrawRangeElements(GLenum mode, GLuint start, GLuin ...@@ -549,6 +549,12 @@ GL_APICALL void GL_APIENTRY glDrawRangeElements(GLenum mode, GLuint start, GLuin
if(context) if(context)
{ {
es2::TransformFeedback* transformFeedback = context->getTransformFeedback();
if(transformFeedback && transformFeedback->isActive() && !transformFeedback->isPaused())
{
return error(GL_INVALID_OPERATION);
}
context->drawElements(mode, start, end, count, type, indices); context->drawElements(mode, start, end, count, type, indices);
} }
} }
......
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