Fix for texture loaded check