[freespace2] gropengl bug... more

Steven Fuller relnev at icculus.org
Thu Jun 19 14:34:52 EDT 2003



On 19 Jun 2003, Taylor Richards wrote:

> The point of this e-mail is to ask whether or not this code block in the
> previously mentioned gropengl function is needed or not:

> <snip>

It's no longer necessary with the power-of-two setup that is now after it.
The ratio check might be necessary, but the way I was doing it was wrong.

I think something like this (after making the width/height powers of two)
would work:
if (tex_w/tex_h > 8) tex_h = tex_w/8;
if (tex_h/tex_w > 8) tex_w = tex_h/8;

In fact, that i/j swap I had added was screwing up the
GL_square_textures=0 case. Argh.

It should be safe to have GL_square_textures default to 0 now.


Steven Fuller





More information about the freespace2 mailing list