Index: trunk/src/gl/gl_texture2d.cc
===================================================================
--- trunk/src/gl/gl_texture2d.cc	(revision 198)
+++ trunk/src/gl/gl_texture2d.cc	(revision 204)
@@ -44,5 +44,5 @@
 void nv::gl_texture2d::bind( size_t slot )
 {
-	glActiveTexture( GL_TEXTURE0 + slot );
+	glActiveTexture( GL_TEXTURE0 + static_cast< GLenum >( slot ) );
 	glBindTexture( GL_TEXTURE_2D, m_name.get_value() );
 }
