From: Roland S. <sr...@tu...> - 2006-12-21 10:12:54
|
James C Georgas wrote: > On Wed, 2006-20-12 at 23:28 -0500, James C Georgas wrote: >> On Wed, 2006-20-12 at 23:25 -0500, James C Georgas wrote: >>>> 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. >>> Yeah, that's the theory, but it's not happening with today's git image. >>> >>> I'm attaching a test program that cheerfully accepts dimensions of 5x7 >>> and interprets the array data accordingly, at least with the software >>> renderer. Am I using the right functions? >> and here's the attachment :) > > Oh, wait. I actually do have GL_ARB_texture_non_power_of_two. > > Still, where in the code is the check performed? This is in _mesa_test_proxy_teximage, which is called by texture_error_check, which is called by _mesa_TexImage2D and friends. All in teximage.c Roland |