mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-05 15:28:10 +00:00
...
This commit is contained in:
parent
feb22ff7ce
commit
55e39aa5f5
1 changed files with 3 additions and 3 deletions
|
|
@ -125,9 +125,9 @@ new_gs(PyTypeObject *type, PyObject *args, PyObject *kwds) {
|
|||
GlobalSession *self;
|
||||
static const char* kw[] = {"enable_glsl_input", NULL};
|
||||
int enable_glsl_input = 0;
|
||||
if (args && !PyArg_ParseTupleAndKeywords(args, kwds, "|p", kw, &enable_glsl_input)) return NULL;
|
||||
self = (GlobalSession *)type->tp_alloc(type, 0);
|
||||
ScopedPyObject ans((PyObject*)self);
|
||||
if (args && !PyArg_ParseTupleAndKeywords(args, kwds, "|p", const_cast<char**>(kw), &enable_glsl_input)) return NULL;
|
||||
self = reinterpret_cast<GlobalSession *>(type->tp_alloc(type, 0));
|
||||
ScopedPyObject ans(reinterpret_cast<PyObject*>(self));
|
||||
if (self != NULL) {
|
||||
self->ptr = nullptr;
|
||||
SlangGlobalSessionDesc desc = {.enableGLSL=static_cast<bool>(enable_glsl_input)};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue