test/automated/render/render.c
changeset 3441 5271ce790fed
parent 3435 9f62f47d989b
child 3442 204609180482
--- 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. */