Re: Tips for debugging D3D Textures & DirectSound?

Frank Eising <[email protected]> Sun, 3 Oct 2004 11:11:53 +0200
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <20041003091153.GA18197@felysium>
> With iphlpapi backported, Dawn of War runs. However the backgrounds
> for the loading screens and the rollover images for the in-game  
> menues fail to load.
> The error:
> err:ddraw:GL_load_texture_target glGetError returns 00000501 for
> D3D_GL_load_texture
> appears in a trace. Any tips for tracking down and fixing this  
> problem?

found this on the net:
----
These OpenGL errors are defined in GL.h, what you can often do is  
ogldebug the app, turn on GLerror checking, then when you hit a GL  
error, look in the man page for the call that triggered it. The GL man  
pages have an 'errors' section so you should be able to look at the  
error and the function call to get an idea of why GL didn't like the  
call. In this case 0x501 is 'INVALID_VALUE', extending on Angus's  
guess, the errors section for man
glteximage2d says:

"GL_INVALID_VALUE is generated if width or height is less than zero,  
greater than 2+GL_MAX_TEXTURE_SIZE, when width cannot be represented as  
2**k+2*border for some integer k, or when height cannot be represented  
as 2**k+I*border, where I is 2 when GL_INTERLACE_SGIX is disabled and 1  
otherwise."

So the texture being too big could trigger it, but to confirm
it, try and isolate the call that's triggering it.
----

Frank Eising