OGRECave / ogre-next

aka ogre v2 - scene-oriented, flexible 3D C++ engine
https://ogrecave.github.io/ogre-next/api/latest
Other
1.09k stars 235 forks source link

DX11 fullscreen problem with alt-tab in Windows 10 samples #153

Open silicium42 opened 4 years ago

silicium42 commented 4 years ago

This only affects DX 11 not GL3+. When fullscreen mode is used the sample app stops displaying anything after leaving and reentering it via alt-tab. In Debug mode the output is transparent (window visible behind it) in Release it is black. There are also two threads that VS reports exited with 0 after leaving the app which doesn't happen with GL3+. Unfortunately though i couldn't identify those threads. I used the master branch and compiled with VS 2017. For the dependencies i used the bitbucket package, but i don't know if that is still correct. It lists these versions.

hifron commented 3 years ago

There could be maybe some incompatibility between Cg(Nvidia only?), graphic card(and its driver), Windows and Ogre. Or if Cg is required for DX 11 or compatible with or App with its features for Cg version for hardware(or compiled for it especially with MingGW compiler. It should be MS compiler for Windows).

I don´t know if I am correct...

darksylinc commented 3 years ago

I've totally forgotten about this ticket.

I remember an issue about "hidden window" flag being fixed for D3D11 in 2.2 or 2.3; so that was likely the cause of the bug.

I should investigate if this is still an issue