matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
491 stars 72 forks source link

Do not check for errors in Draw* functions if OGLPLUS_LOW_PROFILE #96

Closed cneumann closed 9 years ago

cneumann commented 9 years ago

I noticed that every draw call is followed by a glGetError even in LOW_PROFILE mode. My expectation would be that draw calls rarely fail in a way that would not be caught during development, but that the checks cause unnecessary overhead in release (e.g. driver thread synchronization). Therefore I propose to disable the checks in LOW_PROFILE mode, i.e. change OGLPLUS_CHECK to OGLPLUS_VERIFY. Thanks!