diff options
author | Thomas Tyminski <thomast@cs.tu-berlin.de> | 2010-12-22 14:08:09 +0100 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-21 15:08:32 +0300 |
commit | b6445d35f7cc15c512de969b9b932d27616ac08b (patch) | |
tree | 753b7595a505e3da57148f5709ec39c91fe2dd00 /client | |
parent | 8c0f2787abfa64dd839b2dea5fa5acf6f1464cb1 (diff) | |
download | spice-b6445d35f7cc15c512de969b9b932d27616ac08b.tar.gz spice-b6445d35f7cc15c512de969b9b932d27616ac08b.tar.xz spice-b6445d35f7cc15c512de969b9b932d27616ac08b.zip |
Fixes compilation error of Spice Client (Linux/X11) with OpenGL enabled modified: client/x11/red_window.cpp
Diffstat (limited to 'client')
-rw-r--r-- | client/x11/red_window.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp index d7b19f9e..d53a92f2 100644 --- a/client/x11/red_window.cpp +++ b/client/x11/red_window.cpp @@ -2075,13 +2075,13 @@ bool RedWindow::get_mouse_anchor_point(SpicePoint& pt) #ifdef USE_OGL RedGlContext RedWindow::create_context_gl() { - RedGlContext *context = NULL; if (XPlatform::get_fbconfig()[_screen]) { XLockDisplay(x_display); - context = glXCreateContext(x_display, XPlatform::get_vinfo()[_screen], NULL, GL_TRUE); + RedGlContext context = glXCreateContext(x_display, XPlatform::get_vinfo()[_screen], NULL, GL_TRUE); XUnlockDisplay(x_display); + return context; } - return context; + return NULL; } RedPbuffer RedWindow::create_pbuff(int width, int height) |