Sorry about the last patch, I slipped up on my bitwise operators. This should be correct to my intentions at least!
(I forgot to hit reply all, agh, i should probably power off my computer now :P )
On 3/31/07, Chris Bandy cbandy@jbandy.com wrote:
Stefan Dösinger wrote:
@@ -3194,6 +3193,7 @@ static HRESULT WINAPI
IWineD3DSurfaceImpl_PrivateSetup(IWineD3DSurface *iface) {
} else { /* No oversize, gl rect is the full texture size */ This->Flags &= ~SFLAG_OVERSIZE;
This->Flags &= SFLAG_NONPOW2;
This is not correct. This removes every flag except SFLAG_NONPOW2. If you want to remove the SFLAG_NONPOW2 flag you have to invert the flag:
This->Flags &= ~SFLAG_NONPOW2
If you want to set the SFLAG_NONPOW2 flag...
This->Flags |= SFLAG_NONPOW2
-- Nathan