the Fiddler's picture

[OpenGL] DrawBuffer and DrawBuffers tokens

Project:The Open Toolkit library
Version:0.9.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:the Fiddler
Status:closed
Description

The following tokens are valid for GL.DrawBuffer:

NONE, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, GL_FRONT_AND_BACK, and GL_AUXi

GL.DrawBuffers may accept the following tokens:

         NONE
        DRAW_BUFFER0                        0x8825
        DRAW_BUFFER1                        0x8826
        DRAW_BUFFER2                        0x8827
        DRAW_BUFFER3                        0x8828
        DRAW_BUFFER4                        0x8829
        DRAW_BUFFER5                        0x882A
        DRAW_BUFFER6                        0x882B
        DRAW_BUFFER7                        0x882C
        DRAW_BUFFER8                        0x882D
        DRAW_BUFFER9                        0x882E
        DRAW_BUFFER10                       0x882F
        DRAW_BUFFER11                       0x8830
        DRAW_BUFFER12                       0x8831
        DRAW_BUFFER13                       0x8832
        DRAW_BUFFER14                       0x8833
        DRAW_BUFFER15                       0x8834

Right now, both functions are defined to take the same tokens, even though these result in an InvalidOperation. Solution: move second list into a new enum and modify DrawBuffers to use it.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Status:open» fixed

The correct tokens are COLOR_ATTACHMENT[i]n[/i], not DRAW_BUFFER[i]n[/i].

Fixed in revision 1805 using tables 4.4 - 4.6, pg. 184 of the 3.1 specs.

the Fiddler's picture

#2

Status:fixed» closed

Closing issues resolved in 0.9.8.