diff options
author | Matthew Waters <matthew@centricular.com> | 2014-10-30 19:01:20 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2014-10-30 19:01:20 +1100 |
commit | 8d41da18848ff4f56af283496179106e163bcba8 (patch) | |
tree | 080da0ec790048fbdb4b6f081cecdad35ae9420c | |
parent | aad5b0d16646d708415120d4618385d9d70e450f (diff) | |
download | gstreamer-plugins-bad-8d41da18848ff4f56af283496179106e163bcba8.tar.gz |
gl/examples: use the current X Display from SDL
allows GL context sharing to occur.
-rw-r--r-- | tests/examples/gl/sdl/sdlshare.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/examples/gl/sdl/sdlshare.c b/tests/examples/gl/sdl/sdlshare.c index 9d8906d84..bc54eae96 100644 --- a/tests/examples/gl/sdl/sdlshare.c +++ b/tests/examples/gl/sdl/sdlshare.c @@ -288,10 +288,7 @@ main (int argc, char **argv) #else SDL_VERSION (&info.version); SDL_GetWMInfo (&info); - /* FIXME: This display is different to the one that SDL uses to create the - * GL context inside SDL_SetVideoMode() above which fails on Intel hardware - */ - sdl_display = info.info.x11.display; + sdl_display = info.info.x11.gfxdisplay; sdl_win = info.info.x11.window; sdl_gl_context = glXGetCurrentContext (); glXMakeCurrent (sdl_display, None, 0); |