Ignore:
Timestamp:
10/09/14 18:05:29 (11 years ago)
Author:
epyon
Message:
  • temporary functions for swap control, will be substituted with a proper configuration later
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdl/sdl_window.cc

    r340 r343  
    6565        NV_LOG( LOG_INFO, "OpenGL Version      : " << glGetString(GL_VERSION) );
    6666        NV_LOG( LOG_INFO, "OpenGL GLSL Version : " << glGetString(GL_SHADING_LANGUAGE_VERSION) );
    67         //SDL_GL_SetSwapInterval(0);
     67        SDL_GL_SetSwapInterval(1);
    6868
    6969        // TODO: do we really need this?
     
    9797        SDL_DestroyWindow( static_cast<SDL_Window*>( m_handle ) );
    9898}
     99
     100void nv::sdl::window::set_swap_control( bool enabled )
     101{
     102        SDL_GL_SetSwapInterval( enabled ? 1 : 0 );
     103}
Note: See TracChangeset for help on using the changeset viewer.