diff test/automated/render/render.c @ 3441:5271ce790fed

Debug info to help track down render test failures
author Sam Lantinga <slouken@libsdl.org>
date Tue, 17 Nov 2009 06:51:14 +0000
parents 9f62f47d989b
children 204609180482
line wrap: on
line diff
--- a/test/automated/render/render.c	Tue Nov 17 06:50:29 2009 +0000
+++ b/test/automated/render/render.c	Tue Nov 17 06:51:14 2009 +0000
@@ -67,6 +67,7 @@
       return 1;
 
    /* Read pixels. */
+   SDL_RenderPresent();
    ret = SDL_RenderReadPixels( NULL, FORMAT, pix, 80*4 );
    if (SDL_ATassert( "SDL_RenderReadPixels", ret==0) )
       return 1;
@@ -1012,7 +1013,7 @@
          goto err;
       /* Create window. */
       wid = SDL_CreateWindow( msg, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
-            80, 60, 0 );
+            80, 60, SDL_WINDOW_SHOWN );
       if (SDL_ATassert( "SDL_CreateWindow", wid!=0 ))
          goto err;
       /* Check title. */