mirror of
https://github.com/mattrberry/crab.git
synced 2024-11-16 19:49:30 +01:00
properly disable vsync
This commit is contained in:
parent
bc35157dca
commit
01eadfd5a6
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,6 @@ class Display
|
|||
LibSDL.gl_set_attribute(LibSDL::GLattr::SDL_GL_CONTEXT_PROFILE_MASK, LibSDL::GLprofile::PROFILE_CORE)
|
||||
LibSDL.gl_set_attribute(LibSDL::GLattr::SDL_GL_CONTEXT_MAJOR_VERSION, 3)
|
||||
LibSDL.gl_set_attribute(LibSDL::GLattr::SDL_GL_CONTEXT_MINOR_VERSION, 3)
|
||||
LibSDL.gl_set_swap_interval(0) # disable vsync
|
||||
|
||||
{% unless flag?(:darwin) %}
|
||||
# todo: proper debug messages for mac
|
||||
|
@ -63,6 +62,7 @@ class Display
|
|||
{% end %}
|
||||
|
||||
LibSDL.gl_create_context @window
|
||||
LibSDL.gl_set_swap_interval(0) # disable vsync
|
||||
shader_program = LibGL.create_program
|
||||
|
||||
puts "OpenGL version: #{String.new(LibGL.get_string(LibGL::VERSION))}"
|
||||
|
|
Loading…
Reference in a new issue