ogre-next icon indicating copy to clipboard operation
ogre-next copied to clipboard

DX11 fullscreen problem with alt-tab in Windows 10 samples

Open silicium42 opened this issue 4 years ago • 2 comments

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.

  • Cg 3.1 (Windows only)
  • FreeImage 3.15.3
  • freetype 2.4.9
  • OIS 1.4
  • SDL2 2.0.4
  • zlib 1.2.8
  • zziplib 0.13.62 also something in the CMakeCache.txt: PKG_CONFIG_EXECUTABLE points to some MinGW64 folder. Is that a problem for VS? I am not very knowledgeable about CMake unfortunately, so please forgive my ignorance. CMakeCache.txt

silicium42 avatar Oct 31 '20 02:10 silicium42

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...

hifron avatar Feb 14 '21 17:02 hifron

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

darksylinc avatar Feb 15 '21 18:02 darksylinc