The code generated by wxsglcanvas.cpp is OK with wxwidgets 2.8.12 but not with wxwidgets 3.1.1. The argument order is not the same, so when you compile the automatic generated code you obtain a compilation error. I tried to use WXWIN_COMPATIBILITY_2_8 1, but without success.
I propose a patch to avoid this problem, compatible with both wxwidgets versions.
gd_on