]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/glcanvas.cpp
Applied patch [ 708377 ] Make NET (smapi.cpp) UNICODE compatible
[wxWidgets.git] / src / motif / glcanvas.cpp
index 776eb9746c8aea01bb2df8af4abb4a54a9419441..8a84a0ec965eaac36801db2922950c993fa8768e 100644 (file)
@@ -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
@@ -143,7 +144,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 +246,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;
     }