Ignore:
Timestamp:
07/18/13 00:50:12 (12 years ago)
Author:
epyon
Message:
  • sdl - full 2.0 version implemented in the same header
  • sdl - nova fully runs on SDL 2.0 *also*
File:
1 edited

Legend:

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

    r170 r171  
    3131        }
    3232
     33#if NV_SDL_VERSION == NV_SDL_12
    3334        m_info = SDL_GetVideoInfo( );
    3435
     
    3839                return; // TODO: Error report
    3940        }
     41#endif
    4042
    4143//      bpp = m_info->vfmt->BitsPerPixel;
     
    4951        SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 );
    5052        SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4 );
     53
     54#if NV_SDL_VERSION == NV_SDL_20
     55        SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
     56        SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
     57        SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
     58        SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
     59#endif
    5160
    5261}
Note: See TracChangeset for help on using the changeset viewer.