PDA

View Full Version : glPopAttrib "Invalid draw bindings."



ViolentHamster
08-21-2014, 10:12 AM
glDebugMessageCallback is returning GL_INVALID_OPERATION: "Invalid draw bindings" on glPopAttrib. I don't have much else to go on. Does anyone have any suggestions as to where to look?

Yandersen
08-21-2014, 01:28 PM
Would you please list the attributes being popped to give more information?

skynet
08-21-2014, 03:43 PM
ViolentHamster, I assume you called glPushAttrib(GL_COLOR_BUFFER_BIT) which is supposed to push the current glDrawBuffer()/glReadBuffer() setting.
Make sure the same FBO is bound when you call glPopAttrib().

ViolentHamster
08-22-2014, 08:04 AM
Thanks so much. That fixed it.