[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: wined3d: Fix for buggy programs using ortho matrix with no z range
From:       Stefan =?iso-8859-1?q?D=F6singer?= <stefan () codeweavers ! com>
Date:       2008-04-30 9:40:36
Message-ID: 200804301140.36555.stefan () codeweavers ! com
[Download RAW message or body]

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.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic