[PATCH 2/4] d3d9/tests: Test that Direct3D9 doesn't modify the pixel format of the window it targets. (try 4)

Henri Verbeet hverbeet at gmail.com
Wed Feb 19 04:36:24 CST 2014


On 19 February 2014 02:53, Ken Thomases <ken at codeweavers.com> wrote:
> OK, I can see how that would happen.  However, my wined3d patch didn't change that part of the logic.  I think my test just exposed a pre-existing bug.  It doesn't show up without my wined3d patch applied because, in that case, wined3d fails to restore the window's pixel format and leaves it with a double-buffered pixel format.  The two bugs cancel each other out and fixing one allowed the other to be revealed.
>
With the current code, the pixel format only needs changing if the GL
context also does, that's just an implication of setting/restoring
both at the same time.



More information about the wine-devel mailing list