Changeset 323 for trunk/src/gl
- Timestamp:
- 08/26/14 04:03:10 (11 years ago)
- Location:
- trunk/src/gl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r319 r323 132 132 texture result = m_textures.create(); 133 133 gl_texture_info* info = m_textures.get( result ); 134 info->format = aformat;135 info-> sampler = asampler;136 info->size = size;137 info->glid = glid;134 info->format = aformat; 135 info->tsampler = asampler; 136 info->size = size; 137 info->glid = glid; 138 138 return result; 139 139 } -
trunk/src/gl/gl_enum.cc
r319 r323 232 232 case BYTE_VECTOR_3 : return GL_INT_VEC3; 233 233 case BYTE_VECTOR_4 : return GL_INT_VEC4; 234 NV_RETURN_COVERED_DEFAULT( 0 );234 default : return 0; // TODO: throw! 235 235 } 236 236 } -
trunk/src/gl/gl_window.cc
r319 r323 19 19 20 20 #if NV_SDL_VERSION == NV_SDL_20 21 uint32 ucode = ke.keysym.sym;22 #else 23 uint32 ucode = ke.keysym.unicode;21 uint32 ucode = (uint32)ke.keysym.sym; 22 #else 23 uint32 ucode = (uint32)ke.keysym.unicode; 24 24 #endif 25 25 … … 34 34 int capslock = !!(ke.keysym.mod & KMOD_CAPS); 35 35 if ((shifted ^ capslock) != 0) { 36 kevent.key.ascii = (char8)SDL_toupper( ucode);36 kevent.key.ascii = (char8)SDL_toupper((int)ucode); 37 37 } 38 38 }
Note: See TracChangeset
for help on using the changeset viewer.