Browse Source

always bind GL context in mouse handler

pull/1639/head
bsp2 6 years ago
parent
commit
37176f2064
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/window.cpp

+ 2
- 2
src/window.cpp View File

@@ -59,7 +59,7 @@ static void lglw_mouse_cbk(lglw_t _lglw, int32_t _x, int32_t _y, uint32_t _butto


// (note) assumes that GL context is never touched during regular mouse move // (note) assumes that GL context is never touched during regular mouse move
// (note) mouse clicks may cause new SVGs to be loaded, which in turn may cause new GL textures to be created // (note) mouse clicks may cause new SVGs to be loaded, which in turn may cause new GL textures to be created
if(0u != _changedButtonState)
// if(0u != _changedButtonState)
lglw_glcontext_push(global_ui->window.lglw); lglw_glcontext_push(global_ui->window.lglw);


if(LGLW_MOUSE_WHEELUP == _buttonState) if(LGLW_MOUSE_WHEELUP == _buttonState)
@@ -247,7 +247,7 @@ static void lglw_mouse_cbk(lglw_t _lglw, int32_t _x, int32_t _y, uint32_t _butto
} }
} }


if(0u != _changedButtonState)
// if(0u != _changedButtonState)
lglw_glcontext_pop(global_ui->window.lglw); lglw_glcontext_pop(global_ui->window.lglw);
} }




Loading…
Cancel
Save