Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: glPopAttrib "Invalid draw bindings."

  1. #1
    Junior Member Regular Contributor
    Join Date
    May 2008
    Posts
    101

    glPopAttrib "Invalid draw bindings."

    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?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2010
    Location
    Oakville, ON, CA
    Posts
    133
    Would you please list the attributes being popped to give more information?
    Last edited by Yandersen; 08-21-2014 at 03:20 PM.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    666
    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().

  4. #4
    Junior Member Regular Contributor
    Join Date
    May 2008
    Posts
    101
    Thanks so much. That fixed it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •