diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-10-01 19:21:08 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-10-01 19:58:51 +0300 |
commit | 3aed08377d00f39ae6defa7309bf3ea2bb5976f9 (patch) | |
tree | f3cd2b1bb627554d04c96e47d8ec646bba8e7d14 /source/blender | |
parent | b77191c03548180f3df87e9360af8b4c1142be8e (diff) |
GPY Python: program_use_begin and program_use_end.
The user has to be encouraged to use the `program_set` or `program_set_builtin` before drawing.
This avoids problem with gl_context.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/gpu/gpu_py_batch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/gpu/gpu_py_batch.c b/source/blender/python/gpu/gpu_py_batch.c index df7d305300c..b746a9f6d36 100644 --- a/source/blender/python/gpu/gpu_py_batch.c +++ b/source/blender/python/gpu/gpu_py_batch.c @@ -323,9 +323,9 @@ static struct PyMethodDef bpygpu_VertBatch_methods[] = { METH_VARARGS, NULL}, {"draw", (PyCFunction) bpygpu_VertBatch_draw, METH_NOARGS, bpygpu_VertBatch_draw_doc}, - {"program_use_begin", (PyCFunction)bpygpu_VertBatch_program_use_begin, + {"__program_use_begin", (PyCFunction)bpygpu_VertBatch_program_use_begin, METH_NOARGS, ""}, - {"program_use_end", (PyCFunction)bpygpu_VertBatch_program_use_end, + {"__program_use_end", (PyCFunction)bpygpu_VertBatch_program_use_end, METH_NOARGS, ""}, {NULL, NULL, 0, NULL} }; |