[d3d9/device.c] IDirect3DDevice9Impl_GetDepthStencilSurface problem
Carlos Lozano
clozano at andago.com
Fri Feb 4 11:38:33 CST 2005
El vie, 04 de feb de 2005, a las 18:14, Carlos Lozano escribio:
>
> Hello,
>
> El mar, 01 de feb de 2005, a las 07:05, Oliver Stieber escribio:
> >
> > The big patch won't be CVS worthy but it will have
> > things like non-power-2 textures if anyone wants to do
> > some testing since I've only tested against an ATI
> > 9600.
>
> I have "pasted" your non-power-2 textures support to d3d8 code, and
> now i can see the intro in tony hawks 4 demo :) (i have a Geforce 2 GTS,
> so your code works in NVIDIA cards :).
>
> Now it crashes after of press start with:
>
> wine: Unhandled exception (thread 0009), starting debugger...
> WineDbg starting on pid 0x8
> Unhandled exception: page fault on write access to 0x00000004 in 32-bit code (0x409fe785).
> In 32 bit mode.
And removing this call:
//IDirect3DVertexBuffer8Impl_AddRef((LPDIRECT3DVERTEXBUFFER8) *pStream);
in:
HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(LPDIRECT3DDEVICE8 iface, UINT StreamNumber,IDirect3DVertexBuffer8** pStream,UINT* pStride) {
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface;
TRACE("(%p) : StreamNo: %d, Stream (%p), Stride %d\n", This, StreamNumber, This->StateBlock->stream_source[StreamNumber], This->StateBlock->stream_stride[StreamNumber]);
*pStream = This->StateBlock->stream_source[StreamNumber];
*pStride = This->StateBlock->stream_stride[StreamNumber];
//IDirect3DVertexBuffer8Impl_AddRef((LPDIRECT3DVERTEXBUFFER8) *pStream);
return D3D_OK;
}
The game (really it is a demo), is playable :)
Regards,
Carlos.
--
___ _ \ | / Consulting
| . |._ _ _| | ___ ___ ___ http://www.andago.com
| || ' |/ . |<_> |/ . |/ . \__ GNU/Linux
|_|_||_|_|\___|<___|\_. |\___/ _ \ __|\ \ /
Carlos A. Lozano <___'/ | \ -_) __/\__ \ > < -_)
[ carlos.lozano at andago.com ]\___|_| ____/ _/\_\___|
[ calb at epsxe.com ] http://www.ePSXe.com
More information about the wine-devel
mailing list