Fixed bug in thread worker body. Fixed texture loading test.