I get "Segmentation fault" when try to do
map->skybox.back.filename = "string";
map is a pointer to Map class.
filename is of wxString class.
I can't understand what's wrong here, because when I do
map->skybox.back.texid = 1
it doesn't cause the error.
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?
(remove ".doc" from the filename)
The sources require wxWidgets and OpenGL.
Call "Map->Skybox->OK" and you will get "Segmentation fault".