matus-chochlik/oglplus — pull request #96 by cneumann (2014-12-23 23:47:09+00:00)
Title: Do not check for errors in Draw* functions if OGLPLUS_LOW_PROFILE

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!