Fixes a crash when trying to upload the texture if the application changed one of the 3 added states before ImGui was initialized
Fixes a crash when trying to upload the texture if the application changed one of the 3 added states before ImGui was initialized