Index: trunk/src/gl/gl_device.cc
===================================================================
--- trunk/src/gl/gl_device.cc	(revision 319)
+++ trunk/src/gl/gl_device.cc	(revision 323)
@@ -132,8 +132,8 @@
 	texture result = m_textures.create();
 	gl_texture_info* info = m_textures.get( result );
-	info->format  = aformat;
-	info->sampler = asampler;
-	info->size    = size;
-	info->glid    = glid;
+	info->format   = aformat;
+	info->tsampler = asampler;
+	info->size     = size;
+	info->glid     = glid;
 	return result;
 }
Index: trunk/src/gl/gl_enum.cc
===================================================================
--- trunk/src/gl/gl_enum.cc	(revision 319)
+++ trunk/src/gl/gl_enum.cc	(revision 323)
@@ -232,5 +232,5 @@
 	case BYTE_VECTOR_3  : return GL_INT_VEC3;
 	case BYTE_VECTOR_4  : return GL_INT_VEC4;
-	NV_RETURN_COVERED_DEFAULT( 0 );
+	default : return 0; // TODO: throw!
 	}
 }
Index: trunk/src/gl/gl_window.cc
===================================================================
--- trunk/src/gl/gl_window.cc	(revision 319)
+++ trunk/src/gl/gl_window.cc	(revision 323)
@@ -19,7 +19,7 @@
 
 #if NV_SDL_VERSION == NV_SDL_20
-	uint32 ucode = ke.keysym.sym;
-#else
-	uint32 ucode = ke.keysym.unicode;
+	uint32 ucode = (uint32)ke.keysym.sym;
+#else
+	uint32 ucode = (uint32)ke.keysym.unicode;
 #endif
 
@@ -34,5 +34,5 @@
 			int capslock = !!(ke.keysym.mod & KMOD_CAPS);
 			if ((shifted ^ capslock) != 0) {
-				kevent.key.ascii = (char8)SDL_toupper(ucode);
+				kevent.key.ascii = (char8)SDL_toupper((int)ucode);
 			}
 		}
