Fixed uninitialized bugs in Texture loader