Texture initialization fixed