summaryrefslogtreecommitdiffstats
path: root/client/display_channel.cpp
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@gmail.com>2011-03-22 16:16:05 +0100
committerAlon Levy <alevy@redhat.com>2011-07-21 15:09:27 +0300
commitc6b4cb056462f75ecfeee4f6568b243a3bcccef7 (patch)
tree6316f3f741b81c7dec4c70d9ab33716a4c27e5c5 /client/display_channel.cpp
parentf2bb4cfe621eb53b424555651b3850c882659389 (diff)
downloadspice-c6b4cb056462f75ecfeee4f6568b243a3bcccef7.tar.gz
spice-c6b4cb056462f75ecfeee4f6568b243a3bcccef7.tar.xz
spice-c6b4cb056462f75ecfeee4f6568b243a3bcccef7.zip
opengl: fix compilation
When OpenGL is enabled, build fails in DisplayChannel::create_surface because Canvas *canvas is declared twice. Remove the first declaration to fix compilation.
Diffstat (limited to 'client/display_channel.cpp')
-rw-r--r--client/display_channel.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/client/display_channel.cpp b/client/display_channel.cpp
index 3d2d8e8e..3e43aaed 100644
--- a/client/display_channel.cpp
+++ b/client/display_channel.cpp
@@ -1439,9 +1439,6 @@ void DisplayChannel::create_primary_surface(int width, int height, uint32_t form
void DisplayChannel::create_surface(int surface_id, int width, int height, uint32_t format)
{
-#ifdef USE_OGL
- Canvas *canvas;
-#endif
AutoRef<CreateSurfaceEvent> event(new CreateSurfaceEvent(*this, surface_id, width, height,
format));
get_client().push_event(*event);