[PATCH 2/7] d3d9/tests: Test that Direct3D9 doesn't modify the pixel format of the window it targets. (try 3)
Henri Verbeet
hverbeet at gmail.com
Fri Feb 14 11:53:02 CST 2014
On 14 February 2014 00:31, Ken Thomases <ken at codeweavers.com> wrote:
> + /* If no opengl32 function has been called, GetPixelFormat() doesn't reflect a
> + prior SetPixelFormat(). So, call wglCreateContext() even though it will fail. */
> + hglrc = wglCreateContext(hdc);
> + ok(hglrc == NULL, "wglCreateContext succeeded when no pixel format has been set\n");
> + if (hglrc) wglDeleteContext(hglrc);
I decided to look into this a bit, but could only reproduce it on the
testbot. It seems just loading opengl32 is enough to make
GetPixelFormat() work. (Also see
https://newtestbot.winehq.org/JobDetails.pl?Key=4908.)
More information about the wine-devel
mailing list