Fix #146 about change Texture.setType to setInternalFormatType