Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/VideoTexture/Texture.cpp')
-rw-r--r--source/gameengine/VideoTexture/Texture.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/gameengine/VideoTexture/Texture.cpp b/source/gameengine/VideoTexture/Texture.cpp
index 09c95b929c5..f59b92409f5 100644
--- a/source/gameengine/VideoTexture/Texture.cpp
+++ b/source/gameengine/VideoTexture/Texture.cpp
@@ -186,11 +186,12 @@ int Texture_init (Texture *self, PyObject *args, PyObject *kwds)
// texture object with shared texture ID
Texture * texObj = NULL;
- static char *kwlist[] = {"gameObj", "materialID", "textureID", "textureObj", NULL};
+ static const char *kwlist[] = {"gameObj", "materialID", "textureID", "textureObj", NULL};
// get parameters
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|hhO!", kwlist, &obj, &matID,
- &texID, &TextureType, &texObj))
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|hhO!",
+ const_cast<char**>(kwlist), &obj, &matID, &texID, &TextureType,
+ &texObj))
return -1;
// if parameters are available