[Spice-commits] client/x11
Hans de Goede
jwrdegoede at kemper.freedesktop.org
Wed Jan 5 00:54:43 PST 2011
client/x11/red_window.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 9f93db6f0732e1e8e9bc8690c1a080d2e6013d68
Author: Thomas Tyminski <thomast at cs.tu-berlin.de>
Date: Wed Dec 22 14:08:09 2010 +0100
Fixes compilation error of Spice Client (Linux/X11) with OpenGL enabled modified: client/x11/red_window.cpp
diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp
index d7b19f9..d53a92f 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)
More information about the Spice-commits
mailing list