Lines Matching defs:error
218 * an error for this, but the ES 3.0 spec says:
237 GLenum error = valid_prim_mode_indexed(ctx, mode);
238 if (error)
239 return error;
247 * \return GL_TRUE if OK to render, GL_FALSE if error found
253 GLenum error = validate_DrawElements_common(ctx, mode, count, 1, type);
254 if (error)
255 _mesa_error(ctx, error, "glDrawElements");
257 return !error;
264 * \return GL_TRUE if OK to render, GL_FALSE if error found
272 GLenum error;
278 * sizeiptr is specified, an INVALID_VALUE error is generated."
283 * the command which generates the error is ignored so that it has no
289 error = GL_INVALID_VALUE;
291 error = valid_prim_mode_indexed(ctx, mode);
293 if (!error) {
294 error = valid_elements_type(ctx, type);
296 if (!error) {
299 error = GL_INVALID_VALUE;
307 if (error)
308 _mesa_error(ctx, error, "glMultiDrawElements");
319 return !error;
326 * \return GL_TRUE if OK to render, GL_FALSE if error found
333 GLenum error;
336 error = GL_INVALID_VALUE;
338 error = validate_DrawElements_common(ctx, mode, count, 1, type);
341 if (error)
342 _mesa_error(ctx, error, "glDrawRangeElements");
344 return !error;
354 * The error INVALID_OPERATION is generated by DrawArrays and
374 * the draw-time error for transform feedback buffer overflow conditions
454 GLenum error = _mesa_valid_prim_mode(ctx, mode);
455 if (error)
456 return error;
472 * Called from the tnl module to error check the function parameters and
474 * \return GL_TRUE if OK to render, GL_FALSE if error found
479 GLenum error = validate_draw_arrays(ctx, mode, count, 1);
481 if (error)
482 _mesa_error(ctx, error, "glDrawArrays");
484 return !error;
492 GLenum error;
495 error = GL_INVALID_VALUE;
497 error = validate_draw_arrays(ctx, mode, count, numInstances);
500 if (error)
501 _mesa_error(ctx, error, "glDrawArraysInstanced");
503 return !error;
508 * Called to error check the function parameters.
517 GLenum error;
520 error = GL_INVALID_VALUE;
522 error = _mesa_valid_prim_mode(ctx, mode);
524 if (!error) {
527 error = GL_INVALID_VALUE;
532 if (!error) {
544 error = GL_INVALID_OPERATION;
553 if (error)
554 _mesa_error(ctx, error, "glMultiDrawArrays");
556 return !error;
565 GLenum error =
568 if (error)
569 _mesa_error(ctx, error, "glDrawElementsInstanced");
571 return !error;
582 GLenum error;
585 * "An INVALID_VALUE error is generated if id is not the name of a
590 error = GL_INVALID_VALUE;
592 error = _mesa_valid_prim_mode(ctx, mode);
594 if (!error) {
596 error = GL_INVALID_OPERATION;
600 if (error)
601 _mesa_error(ctx, error, "glDrawTransformFeedback*");
603 return !error;
625 * "An INVALID_OPERATION error is generated if zero is bound to
636 GLenum error = _mesa_valid_prim_mode(ctx, mode);
637 if (error)
638 return error;
642 * "An INVALID_OPERATION error is generated if
651 * "An INVALID_OPERATION error is generated if transform feedback is
663 * "An INVALID_VALUE error is generated if indirect is not a
676 * "An INVALID_OPERATION error is generated if the commands source data
690 GLenum error = valid_elements_type(ctx, type);
691 if (error)
692 return error;
697 * If no element array buffer is bound, an INVALID_OPERATION error is
716 * "<primcount> must be positive, otherwise an INVALID_VALUE error will
727 * error is generated."
743 GLenum error =
747 if (error)
748 _mesa_error(ctx, error, "glDrawArraysIndirect");
750 return !error;
759 GLenum error = valid_draw_indirect_elements(ctx, mode, type, indirect,
762 if (error)
763 _mesa_error(ctx, error, "glDrawElementsIndirect");
765 return !error;
789 GLenum error = valid_draw_indirect(ctx, mode, indirect, size);
790 if (error)
791 _mesa_error(ctx, error, "glMultiDrawArraysIndirect");
793 return !error;
817 GLenum error = valid_draw_indirect_elements(ctx, mode, type, indirect,
819 if (error)
820 _mesa_error(ctx, error, "glMultiDrawElementsIndirect");
822 return !error;
883 GLenum error = valid_draw_indirect(ctx, mode, (void *)indirect, size);
884 if (!error)
885 error = valid_draw_indirect_parameters(ctx, drawcount);
887 if (error)
888 _mesa_error(ctx, error, "glMultiDrawArraysIndirectCountARB");
890 return !error;
916 GLenum error = valid_draw_indirect_elements(ctx, mode, type,
918 if (!error)
919 error = valid_draw_indirect_parameters(ctx, drawcount);
921 if (error)
922 _mesa_error(ctx, error, "glMultiDrawElementsIndirectCountARB");
924 return !error;
2482 * If no element array buffer is bound, an INVALID_OPERATION error is
2632 * If no element array buffer is bound, an INVALID_OPERATION error is