[Piglit] [PATCH 1/5] tests: Remove all uses of glutGet

Brian Paul brianp at vmware.com
Thu Aug 30 06:52:58 PDT 2012


On 08/30/2012 12:16 AM, Chad Versace wrote:
> I'm trying to transition Piglit from using GLUT to using Waffle. This
> requires killing all uses of GLUT functions, one-by-one.
>
> glutGet was only used in one test: fp-fragment-position.
>
> Signed-off-by: Chad Versace<chad.versace at linux.intel.com>
> ---
>   tests/shaders/fp-fragment-position.c | 6 ------
>   1 file changed, 6 deletions(-)
>
> diff --git a/tests/shaders/fp-fragment-position.c b/tests/shaders/fp-fragment-position.c
> index a3cbd89..dfc4219 100644
> --- a/tests/shaders/fp-fragment-position.c
> +++ b/tests/shaders/fp-fragment-position.c
> @@ -83,12 +83,6 @@ static const char* const ProgramText[NUM_PROGRAMS] = {
>    */
>   static void DoFrame(void)
>   {
> -	printf("rgba: %i %i %i %i\n",
> -	       glutGet(GLUT_WINDOW_RED_SIZE),
> -	       glutGet(GLUT_WINDOW_GREEN_SIZE),
> -	       glutGet(GLUT_WINDOW_BLUE_SIZE),
> -	       glutGet(GLUT_WINDOW_ALPHA_SIZE));
> -
>   	glClearColor(0.3, 0.3, 0.3, 0.3);
>   	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
>

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the Piglit mailing list