--- engine/video/graphic.cpp.orig	2013-06-02 05:41:06.000000000 -0700
+++ engine/video/graphic.cpp	2014-06-16 09:32:13.000000000 -0700
@@ -986,8 +986,8 @@
 	ckey = f->colorkey;
 
 	glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
-	maxw = std::min(g->GraphicWidth - ow, GLMaxTextureSize);
-	maxh = std::min(g->GraphicHeight - oh, GLMaxTextureSize);
+	maxw = std::min(g->GraphicWidth - ow, (int)GLMaxTextureSize);
+	maxh = std::min(g->GraphicHeight - oh, (int)GLMaxTextureSize);
 	w = PowerOf2(maxw);
 	h = PowerOf2(maxh);
 	tex = new unsigned char[w * h * 4];
