Check return code of SDL_LockYUVOverlay. Should fix some rare crashes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3650
This commit is contained in:
parent
2a8b0b397f
commit
0d7b792d05
1 changed files with 1 additions and 1 deletions
|
@ -727,7 +727,7 @@ bool GFX_StartUpdate(Bit8u * & pixels,Bitu & pitch) {
|
|||
return true;
|
||||
#endif
|
||||
case SCREEN_OVERLAY:
|
||||
SDL_LockYUVOverlay(sdl.overlay);
|
||||
if (SDL_LockYUVOverlay(sdl.overlay)) return false;
|
||||
pixels=(Bit8u *)*(sdl.overlay->pixels);
|
||||
pitch=*(sdl.overlay->pitches);
|
||||
sdl.updating=true;
|
||||
|
|
Loading…
Add table
Reference in a new issue