mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-06 08:45:53 +01:00
fix blending when booting straight into game
This commit is contained in:
parent
719ca57c64
commit
f31a0b72c9
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ class SDLOpenGLImGuiFrontend < Frontend
|
||||||
gl_context = LibSDL.gl_create_context @window
|
gl_context = LibSDL.gl_create_context @window
|
||||||
LibSDL.gl_set_swap_interval(0) # disable vsync
|
LibSDL.gl_set_swap_interval(0) # disable vsync
|
||||||
|
|
||||||
LibGL.enable(LibGL::BLEND)
|
LibGL.enable(LibGL::BLEND) if stubbed?
|
||||||
LibGL.blend_func(LibGL::SRC_ALPHA, LibGL::ONE_MINUS_SRC_ALPHA)
|
LibGL.blend_func(LibGL::SRC_ALPHA, LibGL::ONE_MINUS_SRC_ALPHA)
|
||||||
|
|
||||||
LibGL.gen_textures(1, out game_texture)
|
LibGL.gen_textures(1, out game_texture)
|
||||||
|
|
Loading…
Add table
Reference in a new issue