Remove glFlush from SDL2 apps

This commit is contained in:
Jeremy Soller 2019-08-09 22:02:24 -06:00
parent e1e1e6dafe
commit 690561c2e9
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 1 additions and 15 deletions

View File

@ -73,15 +73,3 @@ diff -ruwN source/Makefile source-new/Makefile
$(BALL_TARG) : $(BALL_OBJS)
$(LINK) -o $(BALL_TARG) $(BALL_OBJS) $(LDFLAGS) $(ALL_LIBS)
diff -ruwN source/share/video.c source-new/share/video.c
--- source/share/video.c 2014-05-21 07:21:43.000000000 -0600
+++ source-new/share/video.c 2019-08-09 21:41:42.891178826 -0600
@@ -359,6 +359,8 @@
snapshot_take();
+ glFlush();
+
SDL_GL_SwapWindow(window);
/* Accumulate time passed and frames rendered. */

View File

@ -203,8 +203,6 @@ idle(void)
draw();
glFlush();
SDL_GL_SwapWindow(window);
}
@ -522,4 +520,4 @@ int main(int argc, char *argv[])
cleanup();
return 0;
}
}