Added check for texture flag missuse.
Added check for texture flag missuse.

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