Cleanup: Nuke most of G.main from GPU code.

This commit is contained in:
2018-06-25 12:32:48 +02:00
parent f33cb522dd
commit 8a7f317666
16 changed files with 81 additions and 71 deletions

View File

@@ -1185,7 +1185,7 @@ static PyObject *gPySetGLSLMaterialSetting(PyObject *,
/* display lists and GLSL materials need to be remade */
if (sceneflag != gs->glslflag) {
GPU_materials_free();
GPU_materials_free(G_MAIN);
if (gp_KetsjiEngine) {
KX_SceneList *scenes = gp_KetsjiEngine->CurrentScenes();
KX_SceneList::iterator it;