You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Borrowing the texture for its entire lifetime renders this method unusable:
It means the texture can not be updated anymore.
Even if the texture is created just for the call, it can not be discarded anymore because: borrow might be used here, when 'shader' is dropped and runs the 'Drop' code for type 'sfml::graphics::Shader'
Thus, the shader needs to be recompiled for every texture update, which is not acceptable.