Ghost Context Refactor

https://developer.blender.org/D643
Separates graphics context creation from window code in Ghost so that they can vary separately.
This commit is contained in:
2014-10-07 15:46:19 -05:00
parent a8705e99ee
commit 8d084e8c8f
236 changed files with 63900 additions and 2614 deletions

View File

@@ -30,7 +30,7 @@
* \ingroup ketsji
*/
#include "GL/glew.h"
#include "glew-mx.h"
#ifdef _MSC_VER
# pragma warning (disable:4786)
@@ -1396,7 +1396,9 @@ static PyObject *gPySetVsync(PyObject *, PyObject *args)
static PyObject *gPyGetVsync(PyObject *)
{
return PyLong_FromLong(gp_Canvas->GetSwapInterval());
int interval = 0;
gp_Canvas->GetSwapInterval(interval);
return PyLong_FromLong(interval);
}
static PyObject *gPyShowFramerate(PyObject *, PyObject *args)