[PATCH v3] winex11.drv: Make the GL context current even if no drawables were given.

Matteo Bruni matteo.mystral at gmail.com
Thu Feb 25 08:29:01 CST 2016


2016-02-24 5:12 GMT+01:00 Charles Davis <cdavis5x at gmail.com>:
> Signed-off-by: Charles Davis <cdavis5x at gmail.com>
> ---
> Try 3: Fix an assignment I missed. (Thanks, Ken.)
>
>  dlls/opengl32/tests/opengl.c |  2 +-
>  dlls/winex11.drv/opengl.c    | 69 +++++++++++++++++++++++++-------------------
>  2 files changed, 41 insertions(+), 30 deletions(-)
>
> diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
> index e5e1507..c058c19 100644
> --- a/dlls/opengl32/tests/opengl.c
> +++ b/dlls/opengl32/tests/opengl.c
> @@ -975,7 +975,7 @@ static void test_opengl3(HDC hdc)
>           * expect drivers to ever offer it.
>           */
>          res = wglMakeCurrent(0, gl3Ctx);
> -        ok(res == FALSE, "Wow, OpenGL 3.0 windowless rendering passed while it was expected not to!\n");
> +        ok(res || broken(!res), "OpenGL 3.0 windowless rendering failed!\n");

That seems suspicious...
AFAICS the comment right above this hunk is still valid (it is for
current Nvidia drivers on Win7 at least), which probably means that
this patch is not a good idea.



More information about the wine-devel mailing list