Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
| Context not available. | |||||
| # pragma warning (disable:4786) | # pragma warning (disable:4786) | ||||
| #endif | #endif | ||||
| #include "glew-mx.h" | #include "GL/glew.h" | ||||
| #include "KX_BlenderCanvas.h" | #include "KX_BlenderCanvas.h" | ||||
| #include "KX_BlenderKeyboardDevice.h" | #include "KX_BlenderKeyboardDevice.h" | ||||
| Context not available. | |||||
| canvas->SetMouseState(RAS_ICanvas::MOUSE_INVISIBLE); | canvas->SetMouseState(RAS_ICanvas::MOUSE_INVISIBLE); | ||||
| // Setup vsync | // Setup vsync | ||||
| int previous_vsync = 0; | int previous_vsync = canvas->GetSwapInterval(); | ||||
| canvas->GetSwapInterval(previous_vsync); | |||||
| if (startscene->gm.vsync == VSYNC_ADAPTIVE) | if (startscene->gm.vsync == VSYNC_ADAPTIVE) | ||||
| canvas->SetSwapInterval(-1); | canvas->SetSwapInterval(-1); | ||||
| else | else | ||||
| Context not available. | |||||