#include "cube.h"
-#if !defined(__WXMSW__) && !defined(__WXPM__)
+#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../../sample.xpm"
#endif
// is wrong when next another canvas is repainted.
const wxSize ClientSize = GetClientSize();
+ TestGLContext& canvas = wxGetApp().GetContext(this);
glViewport(0, 0, ClientSize.x, ClientSize.y);
// Render the graphics and swap the buffers.
- wxGetApp().GetContext(this).DrawRotatedCube(m_xangle, m_yangle);
+ canvas.DrawRotatedCube(m_xangle, m_yangle);
SwapBuffers();
}