Re: Re: Tips for debugging D3D Textures & DirectSound?

Adam Luchjenbroers <[email protected]> Thu, 7 Oct 2004 23:05:46 +0930
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 5 Oct 2004 23:26, James Helferty wrote:
> You will need to add support for EXT_texture_rectangle and
> NV_texture_rectangle, which are virtually identical to eachother
> anyways.  (As is ARB_texture_rectangle which is intended to replace
> both, although, again, functionally identical.)

You're not kidding about the identical part. in the documentation all 3 have 
the same numeric value (0x84F5).

I'd like to know if anyone has any qualms about the code below, we could have 
3 seperate ifs, but considering the above it'd be redundant code.

 /* All three of TEXTURE_RECTANGLE_(ARB|EXT|NV) are allocated the value 
0x84F5, so as long as one of them is there
    we can enable it using the same symbol for it, beats having 3 seperate 
ifs. */
 if (HAVE_GL_EXT(priv, ARB_TEXTURE_RECTANGLE) || HAVE_GL_EXT(priv, 
EXT_TEXTURE_RECTANGLE) || 
        HAVE_GL_EXT(priv, NV_TEXTURE_RECTANGLE))
  glEnable(TEXTURE_RECTANGLE_ARB);

- -- 
"Programming is a Dark Art, and it will always be. The programmer is fighting 
against the two most destructive forces in the universe: entropy and human 
stupidity. They're not things you can always overcome with a "methodology" or 
on a schedule." - Damien Conway
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBZUY194zI/zB2CYURAgQAAKCo7nN0x1kSYFeod033pH+UyZvUkwCfaXAJ
+fKJAvcFlbj5uN4iSpH6Z/c=
=cbEi
-----END PGP SIGNATURE-----