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 3 of 3

Thread: NVIDIA Internal Format Query 2 oddness

  1. #1
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,948

    NVIDIA Internal Format Query 2 oddness

    I'm using NVIDIA's 310.90 drivers on a GeForce GT250. And I'm testing out ARB_internalformat_query2, to see what you get when you try different things.

    One oddity is that basic image formats like GL_RGBA8 will, when queried with GL_READ_PIXELS, return GL_NO_SUPPORT. This means that it should not be possible to use glReadPixels on FBOs with such formats bound. This seems... unlikely. Especially as I tried it with texture targets GL_TEXTURE_2D and GL_RENDERBUFFER.

    Because the operation is unsupported, I also got GL_NONE for GL_READ_PIXEL_FORMAT.

    Also, I got GL_NONE for the TEXTURE_IMAGE_FORMAT and GET_TEXTURE_IMAGE_FORMAT. Oddly enough, the _TYPE versions return real values.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,104
    On my 580I get
    Code :
        glGetInternalformativ(GL_TEXTURE_2D,GL_RGBA8,GL_READ_PIXELS,1,buffers);
     
    FULL_SUPPORT    
     
      glGetInternalformativ(GL_TEXTURE_2D,GL_RGBA8,GL_READ_PIXELS_FORMAT,1,buffers);
     
    0x1908
     
        glGetInternalformativ(GL_TEXTURE_2D,GL_RGBA8,GL_TEXTURE_IMAGE_FORMAT,1,buffers);
     
    0x1908

    I don't know what 0x1908 is.

  3. #3
    Member Regular Contributor
    Join Date
    Aug 2008
    Posts
    433
    0x1908 = GL_RGBA

Posting Permissions

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