mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
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.
This commit is contained in:
parent
02c3f54deb
commit
ade5ecb2c8
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user