|
|
@@ -943,6 +943,17 @@ _mesa_ResumeTransformFeedback(void) |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
/* From the ARB_transform_feedback2 specification: |
|
|
|
* "The error INVALID_OPERATION is generated by ResumeTransformFeedback if |
|
|
|
* the program object being used by the current transform feedback object |
|
|
|
* is not active." |
|
|
|
*/ |
|
|
|
if (obj->shader_program != ctx->Shader.CurrentVertexProgram) { |
|
|
|
_mesa_error(ctx, GL_INVALID_OPERATION, |
|
|
|
"glResumeTransformFeedback(wrong vertex program bound)"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
FLUSH_VERTICES(ctx, 0); |
|
|
|
ctx->NewDriverState |= ctx->DriverFlags.NewTransformFeedback; |
|
|
|
|