-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 James C Georgas wrote: > I want to add an error check to glTexImage2D(), but I don't know where > to put it. > > Basically, what I want to do is check that the given width and height > dimensions are of the form: > > 2^k +2(border) : for some positive integer k > > and throw an GL_INVALID_VALUE error if one of them fails the check, as > per the description in the OpenGL Reference Manual (4th ed, p.546).
I'm pretty sure that when the target isn't GL_TEXTURE_RECTANGLE or GL_ARB_texture_non_power_of_two isn't supported that Mesa already sets this error code. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFiexBX1gOwKyEAw8RApP/AJ48fU21b1Ip4xbTtPJwfM4Q0nAGcgCeMVqH uBONDiooJPS2ho8auW7juHs= =n6qd -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev