fixed stack lock at startup
svn-id: r8779
This commit is contained in:
parent
8a7d540687
commit
ce9d154957
5 changed files with 14 additions and 10 deletions
|
@ -348,7 +348,7 @@ void OSystem_SDL_OpenGL::hotswap_gfx_mode() {
|
|||
|
||||
void OSystem_SDL_OpenGL::update_screen() {
|
||||
|
||||
StackLock lock(_graphicsMutex); // Lock the mutex until this function ends
|
||||
StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
|
||||
|
||||
// If the shake position changed, fill the dirty area with blackness
|
||||
if (_currentShakePos != _newShakePos) {
|
||||
|
@ -548,7 +548,7 @@ bool OSystem_SDL_OpenGL::poll_event(Event *event) {
|
|||
|
||||
uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
|
||||
|
||||
StackLock lock(_graphicsMutex); // Lock the mutex until this function ends
|
||||
StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
|
||||
|
||||
if (param == PROP_TOGGLE_FULLSCREEN) {
|
||||
if (!_usingOpenGL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue