Re: glGetError() function called twice inside glBufferData
Posted by
elect on
Sep 14, 2015; 7:52am
URL: https://forum.jogamp.org/glGetError-function-called-twice-inside-glBufferData-tp4035278p4035281.html
ac wrote
Hey guys, after some gl profiling, we have noticed that the glGetError() function gets called twice inside glBufferData()... this looks strange as it might affect performance with continuous state queries... Maybe it does not have a noticeable effect, but it is often recommended not to use glGetError() in production code, so just wondering.
Andres
Hi Andres,
given what you said it is true, you shouldn't call glBufferData that often if you can
Are you relying on that quite often?