[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17300] trunk/blender/source/gameengine/ VideoTexture/ImageViewport.cpp: VideoTexture: fix compile error with GLint in ImageViewport under osx, part 2

Benoit Bolsee benoit.bolsee at online.be
Sun Nov 2 19:41:25 CET 2008


Revision: 17300
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17300
Author:   ben2610
Date:     2008-11-02 19:41:24 +0100 (Sun, 02 Nov 2008)

Log Message:
-----------
VideoTexture: fix compile error with GLint in ImageViewport under osx, part 2

Modified Paths:
--------------
    trunk/blender/source/gameengine/VideoTexture/ImageViewport.cpp

Modified: trunk/blender/source/gameengine/VideoTexture/ImageViewport.cpp
===================================================================
--- trunk/blender/source/gameengine/VideoTexture/ImageViewport.cpp	2008-11-02 18:31:54 UTC (rev 17299)
+++ trunk/blender/source/gameengine/VideoTexture/ImageViewport.cpp	2008-11-02 18:41:24 UTC (rev 17300)
@@ -192,9 +192,9 @@
 		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





More information about the Bf-blender-cvs mailing list