[1.10]Crash in deferred sample

Problems building or running the engine, queries about how to use features etc.
Post Reply
Crashy
Google Summer of Code Student
Google Summer of Code Student
Posts: 1005
Joined: Wed Jan 08, 2003 9:15 pm
Location: Lyon, France
x 49
Contact:

[1.10]Crash in deferred sample

Post by Crashy »

Hi,

I'm having crashes in the deferred shading sample, due to bad initialization of static values.
For instance, one of theses crashes is caused by GBufferSchemeHandler::NORMAL_MAP_PATTERN being empty at runtime, instead of being initialized to "normal".
If I change the type from const static String to const static char* everything is fine.

I don't really know why, but I suppose it's a problem with static string & dll dynamic loading..however, static strings in OgreMain.dll (like MaterialManager::DEFAULT_SCHEME_NAME) have correct values.

Thanks for any help.
Follow la Moustache on Twitter or on Facebook
Image
Post Reply