summaryrefslogtreecommitdiffstats
path: root/client/x11
diff options
context:
space:
mode:
authorThomas Tyminski <thomast@cs.tu-berlin.de>2010-12-22 14:08:09 +0100
committerHans de Goede <hdegoede@redhat.com>2011-01-05 09:59:59 +0100
commit9f93db6f0732e1e8e9bc8690c1a080d2e6013d68 (patch)
tree04d3fb0bdb325e0ba8476c8227a2f8e801cabc4c /client/x11
parent742703f64175cc47de86599923e8986b9c835e06 (diff)
downloadspice-9f93db6f0732e1e8e9bc8690c1a080d2e6013d68.tar.gz
spice-9f93db6f0732e1e8e9bc8690c1a080d2e6013d68.tar.xz
spice-9f93db6f0732e1e8e9bc8690c1a080d2e6013d68.zip
Fixes compilation error of Spice Client (Linux/X11) with OpenGL enabled modified: client/x11/red_window.cpp
Diffstat (limited to 'client/x11')
-rw-r--r--client/x11/red_window.cpp6
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)