mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Fixed compile error if there is no X11 shared memory support.
This commit is contained in:
parent
d651d82abb
commit
f5fa76f848
|
|
@ -409,9 +409,9 @@ static int X11_VideoInit(_THIS, SDL_PixelFormat *vformat)
|
||||||
/* use default screen (from $DISPLAY) */
|
/* use default screen (from $DISPLAY) */
|
||||||
SDL_Screen = DefaultScreen(SDL_Display);
|
SDL_Screen = DefaultScreen(SDL_Display);
|
||||||
|
|
||||||
use_mitshm = 0;
|
|
||||||
#ifndef NO_SHARED_MEMORY
|
#ifndef NO_SHARED_MEMORY
|
||||||
/* Check for MIT shared memory extension */
|
/* Check for MIT shared memory extension */
|
||||||
|
use_mitshm = 0;
|
||||||
if ( local_X11 ) {
|
if ( local_X11 ) {
|
||||||
use_mitshm = XShmQueryExtension(SDL_Display);
|
use_mitshm = XShmQueryExtension(SDL_Display);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user