Reimplemented PR #832.
Reimplemented PR #832.

jpcy/bgfx,elmindreda/bgfx,jpcy/bgfx,jdryg/bgfx,fluffyfreak/bgfx,mendsley/bgfx,Synxis/bgfx,emoon/bgfx,andr3wmac/bgfx,mmicko/bgfx,attilaz/bgfx,mendsley/bgfx,jdryg/bgfx,fluffyfreak/bgfx,LWJGL-CI/bgfx,mendsley/bgfx,septag/bgfx,MikePopoloski/bgfx,LWJGL-CI/bgfx,septag/bgfx,aonorin/bgfx,andr3wmac/bgfx,Synxis/bgfx,elmindreda/bgfx,attilaz/bgfx,jpcy/bgfx,attilaz/bgfx,emoon/bgfx,septag/bgfx,mmicko/bgfx,andr3wmac/bgfx,aonorin/bgfx,fluffyfreak/bgfx,LWJGL-CI/bgfx,MikePopoloski/bgfx,fluffyfreak/bgfx,MikePopoloski/bgfx,bkaradzic/bgfx,bkaradzic/bgfx,bkaradzic/bgfx,bkaradzic/bgfx,jpcy/bgfx,Synxis/bgfx,jdryg/bgfx,mmicko/bgfx,elmindreda/bgfx,aonorin/bgfx,jdryg/bgfx,LWJGL-CI/bgfx,emoon/bgfx