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
|
@ -210,7 +210,7 @@ void OSystem_SDL::hotswap_gfx_mode() {
|
|||
void OSystem_SDL::update_screen() {
|
||||
assert(_hwscreen != NULL);
|
||||
|
||||
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) {
|
||||
|
@ -336,7 +336,7 @@ void OSystem_SDL::update_screen() {
|
|||
|
||||
uint32 OSystem_SDL::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) {
|
||||
assert(_hwscreen != 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue