BoomingTech / Piccolo

Piccolo (formerly Pilot) – mini game engine for games104
MIT License
5.86k stars 1.82k forks source link

add clamp to mainwindow viewport #381

Closed hanyangl5 closed 1 year ago

hanyangl5 commented 1 year ago

(ImGui::GetWindowSize().y + ImGui::GetWindowPos().y) - menu_bar_rect.Max.y; may cause negative value, negative viewport width/height is not allowed in vulkan. Move FileContent window up and down can reproduce this error,

image