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:
Christophe Fergeau 2011-03-22 16:16:05 +01:00 committed by Alon Levy
parent f2bb4cfe62
commit c6b4cb0564

View File

@ -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);