diff --git a/include/wx/unix/glx11.h b/include/wx/unix/glx11.h index 50305778c4..a27c470332 100644 --- a/include/wx/unix/glx11.h +++ b/include/wx/unix/glx11.h @@ -147,6 +147,9 @@ public: // backwards compatibility and also because wxGTK has it we could start // using it for the same purpose in wxX11 too some day. virtual void *GetXVisualInfo() +#ifdef __WXGTK20__ + wxOVERRIDE +#endif { return wxGLCanvasX11::GetDefaultXVisualInfo(); }