mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +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
f2bb4cfe62
commit
c6b4cb0564
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user