wined3d: Fix for buggy programs using ortho matrix with no z range

Stefan Dösinger stefan at codeweavers.com
Wed Apr 30 04:40:36 CDT 2008


Am Mittwoch, 30. April 2008 07:21:19 schrieb Jens Albretsen:
> A quick one is Lego Island, just forget to put in the disc a there is black
> screen, with this patch is shows a message to put the cdrom in the drive.
>
> Is it something like this?
>
> create (1,1) rendertarget
> clear rendertarget with black
> setup ortho with no range
> draw something with white
> check rendertarget for any pixel drawn, if black test fails
> or what?
Take a look at dlls/d3d9/tests/visual.c

Also, instead of setting the depth range to min;min + 1 it might be better to 
fall back to the no-depth-range codepath that is used if the app ever drawed 
untransformed geomentry. That's the device->untransformed check near the 
glOrtho calls.




More information about the wine-devel mailing list