diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-08-26 12:14:52 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-08-26 12:14:52 +0400 |
commit | f7388c1f2e7a0a23b40a4a2f8b1e2bfbca17e1b9 (patch) | |
tree | 941bca5e4ce53b59f758d944c9e2eb399c5f4278 /source/gameengine/BlenderRoutines | |
parent | c0d67d26aac0c1b5acccdbdd3111c3b76ad7b523 (diff) |
BGE: Cleaning up the vsync code a little.
Diffstat (limited to 'source/gameengine/BlenderRoutines')
-rw-r--r-- | source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp index c3bd93fec81..cab1cbde94f 100644 --- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp +++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp @@ -290,7 +290,7 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c if (startscene->gm.vsync == VSYNC_ADAPTIVE) canvas->SetSwapInterval(-1); else - canvas->SetSwapInterval(!startscene->gm.vsync); // VSYNC_OFF == 1, VSYNC_ON == 0, so this works + canvas->SetSwapInterval((startscene->gm.vsync == VSYNC_ON) ? 1 : 0); RAS_IRenderTools* rendertools = new KX_BlenderRenderTools(); RAS_IRasterizer* rasterizer = NULL; |