gfxFramebuffer is now only compared or set to 0 rather than NULL
This commit is contained in:
parent
67d5ba08ab
commit
7267b60a26
|
@ -1625,7 +1625,7 @@ namespace SohImGui {
|
||||||
pos = ImVec2(size.x / 2 - sw / 2, 0);
|
pos = ImVec2(size.x / 2 - sw / 2, 0);
|
||||||
size = ImVec2(sw, size.y);
|
size = ImVec2(sw, size.y);
|
||||||
}
|
}
|
||||||
if (gfxFramebuffer != NULL) {
|
if (gfxFramebuffer) {
|
||||||
//ImGui::ImageSimple(reinterpret_cast<ImTextureID>(gfxFramebuffer), pos, size);
|
//ImGui::ImageSimple(reinterpret_cast<ImTextureID>(gfxFramebuffer), pos, size);
|
||||||
ImGui::SetCursorPos(pos);
|
ImGui::SetCursorPos(pos);
|
||||||
ImGui::Image(reinterpret_cast<ImTextureID>(gfxFramebuffer), size);
|
ImGui::Image(reinterpret_cast<ImTextureID>(gfxFramebuffer), size);
|
||||||
|
|
|
@ -2783,7 +2783,7 @@ void gfx_run(Gfx *commands, const std::unordered_map<Mtx *, MtxF>& mtx_replaceme
|
||||||
rendering_state.scissor = {};
|
rendering_state.scissor = {};
|
||||||
gfx_run_dl(commands);
|
gfx_run_dl(commands);
|
||||||
gfx_flush();
|
gfx_flush();
|
||||||
gfxFramebuffer = NULL;
|
gfxFramebuffer = 0;
|
||||||
if (game_renders_to_framebuffer) {
|
if (game_renders_to_framebuffer) {
|
||||||
gfx_rapi->start_draw_to_framebuffer(0, 1);
|
gfx_rapi->start_draw_to_framebuffer(0, 1);
|
||||||
gfx_rapi->clear_framebuffer();
|
gfx_rapi->clear_framebuffer();
|
||||||
|
|
Loading…
Reference in New Issue