Commit 1a5622ba authored by Sam Lantinga's avatar Sam Lantinga

Fixed compile error if there is no X11 shared memory support.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40557
parent e1ecdaaa
...@@ -409,9 +409,9 @@ static int X11_VideoInit(_THIS, SDL_PixelFormat *vformat) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment