diff --git a/graphics/x11drv/opengl.c b/graphics/x11drv/opengl.c
index 10865cf80edf8591c4697cc931b7b36bfc0e8ba6..5023dddbf5e77962111ac68d0b05a3ac01672798 100644
--- a/graphics/x11drv/opengl.c
+++ b/graphics/x11drv/opengl.c
@@ -431,6 +431,10 @@ XVisualInfo *X11DRV_setup_opengl_visual( Display *display )
 
 #else  /* no OpenGL includes */
 
+void X11DRV_OpenGL_Init(Display *display)
+{
+}
+
 int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
 			     const PIXELFORMATDESCRIPTOR *ppfd) {
   ERR("No OpenGL support compiled in.\n");