removed unused variable that caused a crash when using animated textures