gfxFramebuffer is now only compared or set to 0 rather than NULL

This commit is contained in:
Kenix3 2022-08-02 23:16:15 -04:00
parent 67d5ba08ab
commit 7267b60a26
2 changed files with 2 additions and 2 deletions

View File

@ -1625,7 +1625,7 @@ namespace SohImGui {
pos = ImVec2(size.x / 2 - sw / 2, 0);
size = ImVec2(sw, size.y);
}
if (gfxFramebuffer != NULL) {
if (gfxFramebuffer) {
//ImGui::ImageSimple(reinterpret_cast<ImTextureID>(gfxFramebuffer), pos, size);
ImGui::SetCursorPos(pos);
ImGui::Image(reinterpret_cast<ImTextureID>(gfxFramebuffer), size);

View File

@ -2783,7 +2783,7 @@ void gfx_run(Gfx *commands, const std::unordered_map<Mtx *, MtxF>& mtx_replaceme
rendering_state.scissor = {};
gfx_run_dl(commands);
gfx_flush();
gfxFramebuffer = NULL;
gfxFramebuffer = 0;
if (game_renders_to_framebuffer) {
gfx_rapi->start_draw_to_framebuffer(0, 1);
gfx_rapi->clear_framebuffer();