diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-06-21 14:17:29 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-21 14:50:18 +0200 |
commit | cfc1e95bda0e150b3de225c3572bb1004dad070e (patch) | |
tree | e672e2607613ac012f0cfe3414a33b129bae52b2 /client/red_window.h | |
parent | ae4436215cb113a02eac73c6afd368166090967c (diff) | |
download | spice-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/red_window.h')
-rw-r--r-- | client/red_window.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/red_window.h b/client/red_window.h index a5eeb535..97f3b791 100644 --- a/client/red_window.h +++ b/client/red_window.h @@ -79,12 +79,12 @@ public: void set_render_pbuff(RedPbuffer pbuff); void set_render_fbo(GLuint fbo); void set_gl_context(RedGlContext context); -#endif - - int get_screen_num(); void set_type_gl(); void unset_type_gl(); +#endif + + int get_screen_num(); static void init(); static void cleanup(); |