summaryrefslogtreecommitdiffstats
path: root/client/screen.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-21 14:17:29 +0200
committerAlexander Larsson <alexl@redhat.com>2010-06-21 14:50:18 +0200
commitcfc1e95bda0e150b3de225c3572bb1004dad070e (patch)
treee672e2607613ac012f0cfe3414a33b129bae52b2 /client/screen.h
parentae4436215cb113a02eac73c6afd368166090967c (diff)
downloadspice-cfc1e95bda0e150b3de225c3572bb1004dad070e.tar.gz
spice-cfc1e95bda0e150b3de225c3572bb1004dad070e.tar.xz
spice-cfc1e95bda0e150b3de225c3572bb1004dad070e.zip
Make opengl optional, disabled by default
The OpenGL renderer isn't really useful right now, its not quite up to date, its not really faster than software and it only supports a limited subset of drivers. So, lets disable it for now. Long term opengl rendering of the 2d part of spice is important if we want to combine 2d and 3d rendering (say if spice adds opengl support in the protocol). But until then this is isn't useful for normal use.
Diffstat (limited to 'client/screen.h')
-rw-r--r--client/screen.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/screen.h b/client/screen.h
index 8b737a2b..8d9a81c3 100644
--- a/client/screen.h
+++ b/client/screen.h
@@ -21,7 +21,9 @@
#include "common.h"
#include "region.h"
#include "red_key.h"
+#ifdef USE_OGL
#include "GL/gl.h"
+#endif // USE_OGL
#include "red_window.h"
#include "platform.h"
@@ -94,12 +96,12 @@ public:
#ifdef USE_OGL
void untouch_context();
bool need_recreate_context_gl();
+ void set_type_gl();
+ void unset_type_gl();
#endif
void set_update_interrupt_trigger(EventSources::Trigger *trigger);
bool update_by_interrupt();
void interrupt_update();
- void set_type_gl();
- void unset_type_gl();
void update();