flyx / OpenGLAda

Thick Ada binding for OpenGL and GLFW
flyx.github.io/OpenGLAda/
MIT License
96 stars 13 forks source link

`Read_Buffer_Selector` needs `None` Selector? #137

Closed rogermc2 closed 5 years ago

rogermc2 commented 5 years ago

I am porting some code that includes glReadBuffer(GL_NONE); but subtype Read_Buffer_Selector in GL.Framebuffer does not include a None selector.

Should the subtype be:

   subtype Read_Buffer_Selector is Buffers.Color_Buffer_Selector range
     Buffers.None .. Buffers.Right;
rogermc2 commented 5 years ago

Committed in my framebuffer branch