I've got a strange problem with drawing text, I made a video describing it and walking through the debugger:
The code can be found here:
https://github.com/odkken/DoorsCall stack:
ntdll.dll!775915de() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
ntdll.dll!775915de() Unknown
ntdll.dll!7758014e() Unknown
> sfml-graphics-d-2.dll!sf::priv::glCheckError(const char * file, unsigned int line) Line 107 C++
sfml-graphics-d-2.dll!sf::RenderTarget::draw(const sf::Drawable & drawable, const sf::RenderStates & states) Line 146 C++
RPG.exe!ShowingDoors::Draw(Game * game) Line 96 C++
RPG.exe!Game::Draw() Line 30 C++
RPG.exe!Game::Loop() Line 41 C++
RPG.exe!main() Line 13 C++
RPG.exe!__tmainCRTStartup() Line 536 C
RPG.exe!mainCRTStartup() Line 377 C
kernel32.dll!769833aa() Unknown
ntdll.dll!775a9ef2() Unknown
ntdll.dll!775a9ec5() Unknown
EDIT:
I got it working by making my vector of doors a vector of pointers to doors. Don't know why that was necessary, but there you go.