On Sun, Aug 16, 2009 at 4:13 PM, Mike C. Fletcher <mcfletch@vrplumber.com> wrote:
Well, the issue was me not knowing what I was doing :-)
It's working perfectly now, thanks!
       """Test that glDrawBuffers with list argument where value is set"""
       previous = glGetIntegerv( GL_READ_BUFFER )
Ah...not glGetString
       fbo = glGenFramebuffersEXT(1)
       glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo)
       try:
           img1,img2 = glGenTextures(2)
           for img in img1,img2:
               glBindTexture( GL_TEXTURE_2D, img )
               glTexImage2D(
                   GL_TEXTURE_2D, 0, GL_RGB8,
                   300, 300, 0, GL_RGB,
                   GL_INT,
                   None # no data transferred
               )


           glFramebufferTexture2DEXT(
               GL_FRAMEBUFFER_EXT,
               GL_COLOR_ATTACHMENT0_EXT,
               GL_TEXTURE_2D, img1, 0
           )
           glFramebufferTexture2DEXT(
               GL_FRAMEBUFFER_EXT,
               GL_COLOR_ATTACHMENT1_EXT,
               GL_TEXTURE_2D, img2, 0
           )
           a_type = constants.GLenum*2
           drawingBuffers = a_type(
               GL_COLOR_ATTACHMENT0_EXT,
               GL_COLOR_ATTACHMENT1_EXT,
           )
           glDrawBuffers(2, drawingBuffers )
           glReadBuffer( GL_COLOR_ATTACHMENT1_EXT )
           pixels = glReadPixels( 0,0, 10,10, GL_RGB, GL_UNSIGNED_BYTE )
           assert len(pixels) == 300, len(pixels)
       finally:
           glBindFramebufferEXT( GL_FRAMEBUFFER_EXT, 0 )
Ah...not GL_AUXi
       glReadBuffer( previous )
Ah...not glReadBuffer(GL_BACK)
Can you give me a script that shows the failure?

Good luck,
Mike
Ian