[Piglit] [PATCH 07/15] Add a call to glewInit() to windowoverlap.c

Chad Versace chad.versace at linux.intel.com
Wed Mar 7 10:00:13 PST 2012


On 03/02/2012 03:40 PM, Paul Berry wrote:
> Previously this test didn't initialize GLEW, presumably because it
> only uses GL 1.0 functions, and those functions bypass GLEW.  But once
> we switch to using piglit-dispatch instead of GLEW, we will need to
> initialize it in order for any GL functions to work.  This patch adds
> a call to glewInit() in the place where a call to
> piglit_dispatch_default_init() will eventually be needed.
> ---
>  tests/general/windowoverlap.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/tests/general/windowoverlap.c b/tests/general/windowoverlap.c
> index 47b6d95..e0a8f47 100644
> --- a/tests/general/windowoverlap.c
> +++ b/tests/general/windowoverlap.c
> @@ -181,6 +181,7 @@ int main(int argc, char *argv[])
>  	glutInitWindowSize(MainWidth, MainHeight);
>  	glutInitDisplayMode(GLUT_RGB);
>  	glutCreateWindow(argv[0]);
> +	glewInit();
>  	glutReshapeFunc(Reshape);
>  	glutDisplayFunc(RedisplayMain);
>  	if (!Automatic)

This change is harmless, and will provide a reminder when we convert to piglit-dispatch.

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>



More information about the Piglit mailing list