X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dae752d4b1bb5bdf1d47833191262c760331681e..7475e8146203b9f75ea01247eb456209ed7b7c13:/src/motif/glcanvas.cpp diff --git a/src/motif/glcanvas.cpp b/src/motif/glcanvas.cpp index 776eb9746c..65f2f0526c 100644 --- a/src/motif/glcanvas.cpp +++ b/src/motif/glcanvas.cpp @@ -10,7 +10,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "glcanvas.h" #endif @@ -21,6 +21,7 @@ #include "wx/glcanvas.h" #include "wx/utils.h" #include "wx/app.h" +#include "wx/log.h" #ifdef __VMS # pragma message disable nosimpint @@ -31,6 +32,10 @@ #endif #include "wx/motif/private.h" +// DLL options compatibility check: +#include "wx/build.h" +WX_CHECK_BUILD_OPTIONS("wxGL") + #ifdef OLD_MESA // workaround for bug in Mesa's glx.c static int bitcount( unsigned long n ) @@ -143,7 +148,7 @@ void wxGLContext::SetColour(const char *colour) if(!XAllocColor((Display*) m_window->GetXDisplay(), (Colormap) wxTheApp->GetMainColormap(m_window->GetXDisplay()), &exact_def)) { - wxDebugMsg("wxGLCanvas: cannot allocate color\n"); + wxLogError("wxGLCanvas: cannot allocate color\n"); return; } pix = the_colour->m_pixel = exact_def.pixel; @@ -245,7 +250,7 @@ bool wxGLCanvas::Create( wxWindow *parent, // Check for the presence of the GLX extension if(!glXQueryExtension(display, NULL, NULL)) { - wxDebugMsg("wxGLCanvas: GLX extension is missing\n"); + wxLogError("wxGLCanvas: GLX extension is missing\n"); return false; }