correct use of DrawDone

This commit is contained in:
dborth 2009-10-13 23:11:33 +00:00
parent a9519239d4
commit 4f9aadb9bb

View file

@ -214,11 +214,8 @@ int flip_thread(void * arg)
GX_LoadTexObj(&texobj, GX_TEXMAP0);
draw_square(view); // render textured quad
GX_DrawDone ();
GX_SetColorUpdate(GX_TRUE);
SDL_mutexV(videomutex);
if (quit_flip_thread == 1)
{
quit_flip_thread = 2;
@ -228,6 +225,8 @@ int flip_thread(void * arg)
whichfb ^= 1;
GX_CopyDisp(xfb[whichfb], GX_TRUE);
GX_DrawDone();
SDL_mutexV(videomutex);
VIDEO_SetNextFramebuffer(xfb[whichfb]);
VIDEO_Flush();