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

James Helferty <[email protected]> Mon, 04 Oct 2004 12:11:48 -0400
Newsgroups gmane.comp.emulators.winex.devel
Organization Transgaming Technologies
Message-ID <[email protected]>
On Sun, 2004-10-03 at 05:11, Frank Eising wrote:
> > 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?
> 
[snip]

> "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.

It's probably more likely that the game is trying to use non-power of
two textures here.


James