mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 23:49:04 +00:00
Fixes compilation error of Spice Client (Linux/X11) with OpenGL enabled modified: client/x11/red_window.cpp
This commit is contained in:
parent
742703f641
commit
9f93db6f07
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user