MyGUI / mygui

Fast, flexible and simple GUI.
http://mygui.info/
Other
714 stars 205 forks source link

MyGUI doesn't render anything with ogre 1.12 and DX9 #172

Closed corentinjaffre closed 4 years ago

corentinjaffre commented 4 years ago

1.11.6 and the latest MyGUI works perfectly. 1.12.x breaks MyGUI and it doesn't render anything with DirectX9.

Altren commented 4 years ago

There is special logic in MyGUI_OgreRenderManager.cpp for the DX11, could you try it for DX9 and 12? if (mRenderSystem->getName() == "Direct3D11 Rendering Subsystem") // special case, it's not working with the value returned by the rendersystem { mInfo.maximumDepth = 0.0f; } else { mInfo.maximumDepth = mRenderSystem->getMaximumDepthInputValue(); }

corentinjaffre commented 4 years ago

I forced mInfo.maximumDepth = 0.0f; And it fixes the rendering with dx9. Thanks a lot for your quick answer Altren!