mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
Remove glFlush from SDL2 apps
This commit is contained in:
parent
e1e1e6dafe
commit
690561c2e9
@ -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. */
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user