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: glDisable(GL_TEXTURE_BUFFER)?

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2012
    Posts
    7

    glDisable(GL_TEXTURE_BUFFER)?

    Hi,

    In OpenGL 3.3. texturing can be disabled using glDisable(GL_TEXTURE_[1D,2D,3D,CUBE_MAP]), but Calling glDisable(GL_TEXTURE_BUFFER) is not valid.

    How are texture buffers conceptually different than other textures? Why can they not be disabled?

    Thanks.

  2. #2
    Member Regular Contributor malexander's Avatar
    Join Date
    Aug 2009
    Location
    Ontario
    Posts
    320
    Enabling and disabling texturing is only used in the fixed function pipeline; it is completely ignored when using shaders. Since Texture buffers are only available in shaders, there was no need to make a enable/disable state for it. That's why you get an error.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2012
    Posts
    7
    Ok.Thanks for clarifying.

Posting Permissions

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