Changeset 323 for trunk/src/gl


Ignore:
Timestamp:
08/26/14 04:03:10 (11 years ago)
Author:
epyon
Message:
  • nova now compiles again under all three compilers with -Winsane and no warnings
Location:
trunk/src/gl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_device.cc

    r319 r323  
    132132        texture result = m_textures.create();
    133133        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;
    138138        return result;
    139139}
  • trunk/src/gl/gl_enum.cc

    r319 r323  
    232232        case BYTE_VECTOR_3  : return GL_INT_VEC3;
    233233        case BYTE_VECTOR_4  : return GL_INT_VEC4;
    234         NV_RETURN_COVERED_DEFAULT( 0 );
     234        default : return 0; // TODO: throw!
    235235        }
    236236}
  • trunk/src/gl/gl_window.cc

    r319 r323  
    1919
    2020#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;
    2424#endif
    2525
     
    3434                        int capslock = !!(ke.keysym.mod & KMOD_CAPS);
    3535                        if ((shifted ^ capslock) != 0) {
    36                                 kevent.key.ascii = (char8)SDL_toupper(ucode);
     36                                kevent.key.ascii = (char8)SDL_toupper((int)ucode);
    3737                        }
    3838                }
Note: See TracChangeset for help on using the changeset viewer.