[Piglit] [PATCH 1/4] framework: Use WGL by default on Windows.

Dylan Baker baker.dylan.c at gmail.com
Mon Dec 15 09:24:05 PST 2014


On Monday, December 15, 2014 12:19:15 PM Jose Fonseca wrote:
> From: José Fonseca <jfonseca at vmware.com>
> 
> Like done with GLX on Linux.
> ---
>  tests/util/piglit-framework-gl/piglit_wfl_framework.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
> index 75fbacf..5d0f569 100644
> --- a/tests/util/piglit-framework-gl/piglit_wfl_framework.c
> +++ b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
> @@ -60,8 +60,10 @@ piglit_wfl_framework_choose_platform(const struct piglit_gl_test_config *test_co
>  			return WAFFLE_PLATFORM_X11_EGL;
>  		}
>  #endif
> -#ifdef PIGLIT_HAS_GLX
> +#if defined(PIGLIT_HAS_GLX)
>  		return WAFFLE_PLATFORM_GLX;
> +#elif defined(PIGLIT_HAS_WGL)
> +		return WAFFLE_PLATFORM_WGL;
>  #else
>  		fprintf(stderr, "environment var PIGLIT_PLATFORM must be set "
>  		        "when piglit is built without GLX support\n");

You should probably update the comment here as well.

> -- 
> 2.1.0
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20141215/8c59efbf/attachment-0001.sig>


More information about the Piglit mailing list