Fixes ETC1 Texture bugs. See issues #946 and #940