fprintf(stderr, "eglMakeCurrent: %x\n", eglGetError());
goto out;
}
+
+ ret = *quirks & GL_QUIRK_VSYNC_ON ? 1 : 0;
+ eglSwapInterval(edpy, ret);
// 1.x (fixed-function) only
glEnable(GL_TEXTURE_2D);
#define GL_QUIRK_ACTIVATE_RECREATE 1
#define GL_QUIRK_SCALING_NEAREST 2
+#define GL_QUIRK_VSYNC_ON 4
#endif // LIBPICOFE_GL_H
if (type == 0)
gl_quirks |= GL_QUIRK_SCALING_NEAREST;
}
+
+void plat_sdl_gl_vsync(int on)
+{
+ gl_quirks &= ~GL_QUIRK_VSYNC_ON;
+ if (on)
+ gl_quirks |= GL_QUIRK_VSYNC_ON;
+}
+
// vim:shiftwidth=2:expandtab
void plat_sdl_overlay_clear(void);
void plat_sdl_event_handler(void *event_);
void plat_sdl_gl_scaling(int type);
+void plat_sdl_gl_vsync(int on);
void plat_sdl_finish(void);