9.2.2016 – Big bucket of fun with recreation of textures after window has changed

Informations from project life
Post Reply
fprt77
Site Admin
Posts: 38
Joined: Sun Apr 03, 2016 7:35 pm

9.2.2016 – Big bucket of fun with recreation of textures after window has changed

Post by fprt77 » Mon May 30, 2016 2:29 pm

So yesterday, we have found funny bug on Windows build. Each time window properties have changed, screen went just full black. After painful investigation (especially because we develop on Unix system), Martin found source of problems. It is limitation of SDL library we use to draw textures. After every window change (resize or fullscreen toggle), all textures that were used as target of partial draw become corrupted. This meant that we had to add recreation of such textures. A lot of classes had textures like that, so it was kinda annoying to add recreation trigger to each of them. But we have managed to fix this issue and Windows users can enjoy their window resizing and fullscreen toggling.

Post Reply