diff options
author | Christophe Fergeau <cfergeau@gmail.com> | 2011-03-22 16:16:05 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2011-03-23 11:26:29 +0100 |
commit | ade5ecb2c8184775a9b7329d6c026b62cb08a91e (patch) | |
tree | 84aff18bf0e0c7d4ba24a8a459d4f3d624831308 /client/display_channel.cpp | |
parent | 02c3f54deb780d01f89edd52a2be05cdaa3556a8 (diff) | |
download | spice-ade5ecb2c8184775a9b7329d6c026b62cb08a91e.tar.gz spice-ade5ecb2c8184775a9b7329d6c026b62cb08a91e.tar.xz spice-ade5ecb2c8184775a9b7329d6c026b62cb08a91e.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.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/client/display_channel.cpp b/client/display_channel.cpp index 94bfe6b5..2950c30d 100644 --- a/client/display_channel.cpp +++ b/client/display_channel.cpp @@ -1437,9 +1437,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); |