]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/bitmap.cpp
[ 1222406 ] Fix for BadMatch X errors with wxGLCanvas under wxGTK - Nathan Cournia.
[wxWidgets.git] / src / mgl / bitmap.cpp
index bef5fc7e40e0e8425e44c3086b7603bc2fa77b45..b8a3f3906d172c2060adb08f78db91aa91a6c4bc 100644 (file)
@@ -317,7 +317,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth)
 
 wxImage wxBitmap::ConvertToImage() const
 {
-    wxCHECK_MSG( Ok(), FALSE, wxT("invalid bitmap") );
+    wxCHECK_MSG( Ok(), wxImage(), wxT("invalid bitmap") );
 
     int width, height;
     width = GetWidth();