Message du 11/07/06 09:08 De : "H. Verbeet" A : "Christian Costa" Copie à : wine-devel@winehq.org, stefandoesinger@gmx.at Objet : Re: Pb WineD3D: power of 2 surface and non power of 2 DIB section
On 10/07/06, Christian Costa wrote:
Hi,
When calling CreateSurface, a power of 2 surface is created and then the necessary memory is allocated. If we try to get the DC with GetDC, a DIB section is created with the original size of the surface and data from the surface is copied to the DIB section The power of 2 surface being greater than the DIB section, this makes Wine crashes.
I haven't followed power of 2 texture/surface development. Is there someone having a idea on this.
You probably want to ask Stefan. I assume you're talking about the case where the card doesn't support NPOT textures and we fixup the texture size?
yeah, right.
Looking at the code, it's seems the fixup is done in all cases. But maybe I have missed something...
On 11/07/06, Christian Costa titan.costa@wanadoo.fr wrote:
Looking at the code, it's seems the fixup is done in all cases. But maybe I have missed something...
Hmm, maybe that's not actually in the tree yet :-)
GL_ARB_texture_non_power_of_two adds NPOT texture support to OpenGL. Fortunately for us it's quite a simple extension as well. :-)