https://bugs.freedesktop.org/show_bug.cgi?id=13978
--- Comment #7 from Samuel Iglesias <[email protected]> --- (In reply to Benjamin Botwin from comment #6) > GL_DRAW_BUFFER0 returns 1029 instead of GL_BACK_LEFT I test it and I have not found anything wrong in Mesa. The initial value for double-buffered contexts is GL_BACK. * See: https://www.opengl.org/sdk/docs/man4/html/glDrawBuffer.xhtml * Also see: https://www.opengl.org/sdk/docs/man2/xhtml/glGet.xml Search for GL_DRAW_BUFFER. Furthermore, glClearBuffer() doc says the following: "If buffer is GL_COLOR, a particular draw buffer GL_DRAW_BUFFERi is specified by passing i as drawBuffer." As a second parameter of glClearbuffer(), you are passing the value got from glGetIntegeriv() which is wrong. For GL_DRAW_BUFFER0, you should pass a 0. If you do that, the window is cleared with red color once we swap buffers. * See https://www.opengl.org/sdk/docs/man3/xhtml/glClearBuffer.xml -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
