Fix for rendering issues when calling GetDepthStencilSurface

Rico Schüller kgbricola at web.de
Sun Aug 31 10:12:47 CDT 2008


Andrew Fenn schrieb:
> I'm really stumped on why this even works because after writing a test
> (attached) and running on windows it shows that ppZStencilSurface IS
> getting set to null when D3DERR_NOTFOUND is returned.
>
> Could it be that there is something else behind this problem which is
> unrelated to what I have been looking at?
>
> Regards,
> Andrew
>
> On Sat, Aug 30, 2008 at 1:05 AM, Stefan Dösinger <stefan at codeweavers.com> wrote:
>   
>>> When IWineD3DDevice_GetDepthStencilSurface returns WINED3DERR_NOTFOUND
>>> it was setting ppZStencilSurface to null. This was the cause of
>>> rendering issues with the 3d models in spore.
>>>       
>> Can you write a test for this? I think we have some depth stencil tests in dlls/d3d9/tests/device.c which you could use to test this.
>>
>> I think you are right with this patch - I vaguely remember writing a test for a different getter function, but it is better to be sure
>>
>>
>>
>>
>>
>>     
>> ------------------------------------------------------------------------
>>
>>
This is a better patch which shows the source of the problem and 
implements the correct behaviour of GetDepthStencilSurface. But there is 
a problem in function IWineD3DDeviceImpl_GetDepthStencilSurface. This 
couldn't return the value which we need (see test cases). So anyone a 
suggestion?

Cheers
Rico
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: depthtest2.patch
Url: http://www.winehq.org/pipermail/wine-devel/attachments/20080831/bfbbfd7e/attachment.txt 


More information about the wine-devel mailing list