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.
A few code changes, linux only.
Header. Just a name added to the bugfix list.
Small bugfix for test application
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.