diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index 64e0948fc..ab7f13548 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -409,9 +409,9 @@ static int X11_VideoInit(_THIS, SDL_PixelFormat *vformat) /* use default screen (from $DISPLAY) */ SDL_Screen = DefaultScreen(SDL_Display); - use_mitshm = 0; #ifndef NO_SHARED_MEMORY /* Check for MIT shared memory extension */ + use_mitshm = 0; if ( local_X11 ) { use_mitshm = XShmQueryExtension(SDL_Display); }