VideoTexture: fix compile error with GLint in ImageViewport under osx, part 2
authorBenoit Bolsee <benoit.bolsee@online.be>
Sun, 2 Nov 2008 18:41:24 +0000 (18:41 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Sun, 2 Nov 2008 18:41:24 +0000 (18:41 +0000)
source/gameengine/VideoTexture/ImageViewport.cpp

index 59995198ba1df4e710b2c7dae9b0aef1f4e40f8e..4ed1cd9e80132011ee9ca9559c700fd3d5dcd73f 100644 (file)
@@ -192,9 +192,9 @@ static int ImageViewport_setPosition (PyImage * self, PyObject * value, void * c
                return -1;
        }
        // set position
-       int pos [] = {
-               int(PyInt_AsLong(PySequence_Fast_GET_ITEM(value, 0))),
-                       int(PyInt_AsLong(PySequence_Fast_GET_ITEM(value, 1)))
+       GLint pos [] = {
+               GLint(PyInt_AsLong(PySequence_Fast_GET_ITEM(value, 0))),
+                       GLint(PyInt_AsLong(PySequence_Fast_GET_ITEM(value, 1)))
        };
        getImageViewport(self)->setPosition(pos);
        // success