#2 Fixes for Linux

open
nobody
None
5
2004-11-12
2004-11-07
Andrew
No

This proposed change fixes the choice of Pixel Format
for floating point textures under linux - although I
think there is a better way to do it.

It also makes a few changes to those previously
submitted by Florian, so that details for these
floating point textures can be output to the shell
without it segfaulting - FBConfig attributes can be
extracted directly using glXGetFBConfigAttrib, rather
than creating a Visual and getting them there. It's a
bit simpler, and it works for this special case (as
well as the others).

That's about it, but for all you people desparately
wanting to use floating point, rectangular textures in
linux, here's one way to do it.

Sweet as,

Woody.

Discussion

  • Andrew

    Andrew - 2004-11-07

    A few code changes, linux only.

     
  • Andrew

    Andrew - 2004-11-07

    Header. Just a name added to the bugfix list.

     
  • Andrew

    Andrew - 2004-11-12

    Small bugfix for test application

     
  • Andrew

    Andrew - 2004-11-12
    • summary: Floating Point texture fix for Linux --> Fixes for Linux
     
  • Andrew

    Andrew - 2004-11-12

    Logged In: YES
    user_id=1152885

    I've since found a little bug in the TestRenderTexture.cpp
    file, which - while hard to find was very, VERY simple. In
    the rare instance anyone might have created two floating
    point, rectangular textures in a row, you may have come
    across it. All it did was look at an old RenderTexture and
    got the wrong value, CG_SAMPLER2D instead of CG_SAMPLERRECT.
    The corrected file is now here as well.

     

Log in to post a comment.