# OpenGL error using bot beginDraw()

**URL:** <https://discourse.processing.org/t/opengl-error-using-bot-begindraw/7567>\
**Category:** Processing\
**Created:** [January 16, 2019, 5:59pm UTC](https://discourse.processing.org/t/opengl-error-using-bot-begindraw/7567 "2019-01-16T17:59:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neophyte](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neophyte/32/3269_2.png) [@neophyte](https://discourse.processing.org/u/neophyte)\
**Post date:** [January 16, 2019, 5:59pm UTC](https://discourse.processing.org/t/opengl-error-using-bot-begindraw/7567/1 "2019-01-16T17:59:11Z")

</div>

When running many of the graphics examples, I oft get this as the first of the error messages:

“OpenGL error 1280 at bot beginDraw(): invalid enumerant”

Has anyone seen this error, and know what is causing it?

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [January 17, 2019, 3:09am UTC](https://discourse.processing.org/t/opengl-error-using-bot-begindraw/7567/2 "2019-01-17T03:09:45Z")

</div>

It has been seen before:

> [OpenGL error 1280 at bot beginDraw(): invalid enum [Cardboard] · Issue #281 · processing/processing-android · GitHub](https://github.com/processing/processing-android/issues/281)

> ["OpenGL error 1280 at top beginDraw(): invalid enumerant" Processing 2.0b6 - Processing Forum](https://forum.processing.org/one/topic/opengl-error-1280-at-top-begindraw-invalid-enumerant-processing-2-0b6.html)

but it is not as common. For the record, can you tell us about your system? Are you using the latest Processing version? What is your OS? Did you start having this problem recently, maybe after a system update?

Kf
