Fix crash on shutdown in HMD mode.
Fix crash on shutdown in HMD mode.

Presumably this crash is due to a bug in either the Oculus SDK or DirectX itself as changing the order of releasing these objects should not have any effect.

ktotheoz/bgfx,Vertexwahn/bgfx,mcanthony/bgfx,jdryg/bgfx,v3n/bgfx,Synxis/bgfx,darkimage/bgfx,v3n/bgfx,septag/bgfx,LWJGL-CI/bgfx,LWJGL-CI/bgfx,0-wiz-0/bgfx,bkaradzic/bgfx,LWJGL-CI/bgfx,jpcy/bgfx,LWJGL-CI/bgfx,emoon/bgfx,mendsley/bgfx,darkimage/bgfx,ming4883/bgfx,kondrak/bgfx,septag/bgfx,jpcy/bgfx,kondrak/bgfx,fluffyfreak/bgfx,ktotheoz/bgfx,v3n/bgfx,bkaradzic/bgfx,emoon/bgfx,aonorin/bgfx,janstk/bgfx,Vertexwahn/bgfx,andr3wmac/bgfx,cyndis/bgfx,attilaz/bgfx,ktotheoz/bgfx,BlueCrystalLabs/bgfx,mmicko/bgfx,elmindreda/bgfx,Extrawurst/bgfx,ocornut/bgfx,attilaz/bgfx,ocornut/bgfx,jpcy/bgfx,marco-we/bgfx,Extrawurst/bgfx,BlueCrystalLabs/bgfx,0-wiz-0/bgfx,cuavas/bgfx,LSBOSS/bgfx,ocornut/bgfx,darkimage/bgfx,mendsley/bgfx,elmindreda/bgfx,janstk/bgfx,Synxis/bgfx,janstk/bgfx,aonorin/bgfx,sergeScherbakov/bgfx,LSBOSS/bgfx,mmicko/bgfx,cyndis/bgfx,Vertexwahn/bgfx,mcanthony/bgfx,andr3wmac/bgfx,aonorin/bgfx,jpcy/bgfx,BlueCrystalLabs/bgfx,cuavas/bgfx,cuavas/bgfx,bkaradzic/bgfx,LSBOSS/bgfx,jdryg/bgfx,elmindreda/bgfx,MikePopoloski/bgfx,fluffyfreak/bgfx,MikePopoloski/bgfx,mendsley/bgfx,jdryg/bgfx,Synxis/bgfx,mmicko/bgfx,cyndis/bgfx,MikePopoloski/bgfx,Extrawurst/bgfx,marco-we/bgfx,mcanthony/bgfx,attilaz/bgfx,kondrak/bgfx,ming4883/bgfx,jdryg/bgfx,septag/bgfx,andr3wmac/bgfx,emoon/bgfx,sergeScherbakov/bgfx,bkaradzic/bgfx,marco-we/bgfx,ming4883/bgfx,0-wiz-0/bgfx,fluffyfreak/bgfx,sergeScherbakov/bgfx,fluffyfreak/bgfx