diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-11 16:54:45 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-05 10:48:26 +0200 |
commit | 0b71a5d5caa4f709d37fa1d7786dffc2c94f8414 (patch) | |
tree | db4697889cfdac1fae3cf5a42055cb21cd08aa72 /ui/sdl.c | |
parent | 19dadfccd0124804e2790e7cb075c9df7cd3154f (diff) | |
download | qemu-0b71a5d5caa4f709d37fa1d7786dffc2c94f8414.tar.gz qemu-0b71a5d5caa4f709d37fa1d7786dffc2c94f8414.tar.bz2 qemu-0b71a5d5caa4f709d37fa1d7786dffc2c94f8414.zip |
sdl2: add support for display rendering using opengl.
Add new sdl2-gl.c file, with display
rendering functions using opengl.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'ui/sdl.c')
-rw-r--r-- | ui/sdl.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -908,6 +908,16 @@ static const DisplayChangeListenerOps dcl_ops = { .dpy_cursor_define = sdl_mouse_define, }; +void sdl_display_early_init(int opengl) +{ + if (opengl == 1 /* on */) { + fprintf(stderr, + "SDL1 display code has no opengl support.\n" + "Please recompile qemu with SDL2, using\n" + "./configure --enable-sdl --with-sdlabi=2.0\n"); + } +} + void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) { int flags; |