gropengl bug... more

Taylor Richards mtrs at bellsouth.net
Thu Jun 19 08:11:04 EDT 2003


Just put the fix in (probably 3 hours ago since my messages seem to be
taking that long to ever hit the list).  Also put in a couple of changes
to the memory leak fixes including the NULLs in font.cpp.

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:

--------------------------------------------------------------------
  for (i=0; i<16; i++ )  {
    if ( (tex_w > (1<<i)) && (tex_w <= (1<<(i+1))) )  {
      break;
    }
  }

  for (j=0; j<16; j++ )   {
    if ( (tex_h > (1<<j)) && (tex_h <= (1<<(j+1))) ) {
      break;
    }
  }

  /* make i the smaller one */
  if (j > i) {
    int t = j;
    j = i;
    i = t;
  }
--------------------------------------------------------------------

It doesn't seem to serve any real purpose at the moment since the 8:1
ratio thing isn't used.


Taylor

-- 
Taylor Richards <mtrs at bellsouth.net>




More information about the freespace2 mailing list