X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b089c5e8c8a2140258d150ca1ce42afd3b79e1b..6dfec4b8d901b13f11745a1371083a0b8c1c6980:/samples/opengl/cube/cube.cpp?ds=inline diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index 2f145970d2..997b37131b 100644 --- a/samples/opengl/cube/cube.cpp +++ b/samples/opengl/cube/cube.cpp @@ -27,6 +27,10 @@ #include "wx/log.h" +#if !wxUSE_GLCANVAS +#error Please set wxUSE_GLCANVAS to 1 in setup.h. +#endif + #include "cube.h" #ifndef __WXMSW__ // for wxStopWatch, see remark below @@ -423,7 +427,7 @@ void MyFrame::OnNewWindow() MyFrame *frame = new MyFrame(NULL, "Cube OpenGL Demo Clone", wxPoint(50, 50), wxSize(400, 300)); // Give it an icon -#ifdef wx_msw +#ifdef __WXMSW__ frame->SetIcon(wxIcon("mondrian")); #endif