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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user