OGRE + SDL, image turns gray

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
ChristophLGDV
Gnoblar
Posts: 18
Joined: Mon Jun 01, 2015 3:09 pm

OGRE + SDL, image turns gray

Post by ChristophLGDV »

I create an SDL window and use Ogres parentHandle to create an OGRE window.


All works fine.
However, after ~5 seconds, the image turns gray. All the color drains away. A white output will turn to gray as well.
Any Idea what is happening ?

Thanks for Reading
scrawl
OGRE Expert User
OGRE Expert User
Posts: 1119
Joined: Sat Jan 01, 2011 7:57 pm
x 220

Re: OGRE + SDL, image turns gray

Post by scrawl »

You need to poll SDL events, else the window events will just "pile up" in the queue and after a while the window manager will determine that your application has stopped responding to user input.