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

Thread: Texture borders on GL_RGBA32F textures (ATI bug most likely)

  1. #1
    Junior Member Regular Contributor
    Join Date
    Feb 2001
    Location
    UK
    Posts
    124

    Texture borders on GL_RGBA32F textures (ATI bug most likely)

    Hello,

    I got a few textures created with the following setup:
    Code :
    glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA32F_ARB, width, height, 1, GL_RGBA, GL_UNSIGNED_BYTE, NULL );
    (width and height are 64 for my current tests)

    This crashes when it tries to dereference a null pointer in the dirvers somewhere. Removing the texture border (i.e. from 1 to 0) solves the crash. (But obviously no borders )
    Im'm rendering to these using fbo's but it is not rendering to them that causes them to crash but binding them on a texture unit and reading from them.

    Has anyone had similar problems? and nows how to kindof "work around" it?

    Charles

  2. #2
    Advanced Member Frequent Contributor Mars_999's Avatar
    Join Date
    Mar 2001
    Location
    Sioux Falls, SD, USA
    Posts
    519

    Re: Texture borders on GL_RGBA32F textures (ATI bug most likely)

    Ah you have a fp32 texture type but you call GL_UNSIGNED_BYTE for a type? that should be GL_FLOAT

  3. #3
    Senior Member OpenGL Pro sqrt[-1]'s Avatar
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    1,000

    Re: Texture borders on GL_RGBA32F textures (ATI bug most likely)

    Originally posted by Mars_9999:
    Ah you have a fp32 texture type but you call GL_UNSIGNED_BYTE for a type? that should be GL_FLOAT
    Uh, you are aware that that parameter is only for the supplied pixel data right? So you can use what ever format you like (and considering he is using the empty pixel data array, it does not matter at all as there is no data to convert)

  4. #4
    Advanced Member Frequent Contributor Mars_999's Avatar
    Join Date
    Mar 2001
    Location
    Sioux Falls, SD, USA
    Posts
    519

    Re: Texture borders on GL_RGBA32F textures (ATI bug most likely)

    Originally posted by sqrt[-1]:
    Originally posted by Mars_9999:
    Ah you have a fp32 texture type but you call GL_UNSIGNED_BYTE for a type? that should be GL_FLOAT
    Uh, you are aware that that parameter is only for the supplied pixel data right? So you can use what ever format you like (and considering he is using the empty pixel data array, it does not matter at all as there is no data to convert)
    Ok, note to self. I still pair the types up just in case down the road I change to upload the data instead...

Posting Permissions

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