Index: trunk/src/gl/gl_context.cc
===================================================================
--- trunk/src/gl/gl_context.cc	(revision 361)
+++ trunk/src/gl/gl_context.cc	(revision 364)
@@ -734,5 +734,5 @@
 		if ( slots[i] > OUTPUT_7 ) buffers[i] = 0;
 	}
-	glDrawBuffers( count, buffers );
+	glDrawBuffers( (GLsizei)count, buffers );
 }
 
Index: trunk/src/gl/gl_device.cc
===================================================================
--- trunk/src/gl/gl_device.cc	(revision 361)
+++ trunk/src/gl/gl_device.cc	(revision 364)
@@ -56,5 +56,5 @@
 {
 	load_sdl_image_library();
-	SDL_Surface* image = IMG_LoadTyped_RW( SDL_RWFromMem( (void*)data, size ), 1, "tga" );
+	SDL_Surface* image = IMG_LoadTyped_RW( SDL_RWFromMem( (void*)data, (int)size ), 1, "png" );
 	if ( !image )
 	{
@@ -402,5 +402,5 @@
 
 	const char* pc = shader_code.data();
-	int l = shader_code.length();
+	int l = (int)shader_code.length();
 
 	glShaderSource( glid, 1, &pc, &l );
