Code: Select all
map->skybox.back.filename = "string";
filename is of wxString class.
I can't understand what's wrong here, because when I do
Code: Select all
map->skybox.back.texid = 1
texid is of GLint type.
I even tried to change filename to string type, not wxString class, but with no success. Even memset was done for skybox...
I'm at a loss what to do, and what can cause the error
Can anyone help me?
Thanks.
PS: Sources
(remove ".doc" from the filename)
The sources require wxWidgets and OpenGL (and Linux, or Cygwin under Windows)
Call "Map->Skybox->OK" and you will get "Segmentation fault".