Fixup for previous commit. This is a better way to do it.

This commit is contained in:
Dario Manesku 2015-04-05 09:04:16 +02:00
parent 5ee33930f6
commit 8f31098c40
2 changed files with 2 additions and 1 deletions

View file

@ -1905,7 +1905,7 @@ void ImGui::NewFrame()
g.CurrentWindowStack.resize(0);
// Create implicit window - we will only render it if the user has added something to it.
ImGui::Begin("Debug", NULL, ImVec2(400,400), -1.0f, ImGuiWindowFlags_NoSavedSettings);
ImGui::Begin("Debug", NULL, ImVec2(400,400));
}
// NB: behaviour of ImGui after Shutdown() is not tested/guaranteed at the moment. This function is merely here to free heap allocations.

View file

@ -86,6 +86,7 @@ struct OcornutImguiContext
ImGuiIO& io = ImGui::GetIO();
io.DisplaySize = ImVec2(1280.0f, 720.0f);
io.DeltaTime = 1.0f / 60.0f;
io.IniFilename = NULL;
// io.PixelCenterOffset = bgfx::RendererType::Direct3D9 == bgfx::getRendererType() ? -0.5f : 0.0f;
const bgfx::Memory* vsmem;