This commit is contained in:
2026-03-13 13:15:58 -04:00
parent ca01397885
commit a57a3c78d4
2 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class BackgroundShader:
self.ctx: Optional[nvg.Context] = None
def render(self, width: float, height: float):
if not self.enabled:
if not self.enabled or width <= 0 or height <= 0:
return
# In imgui-bundle, hello_imgui handles the background.