From 2390ae9f7dfc41612335507442f3048d29d95900 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 10 Feb 2022 02:17:23 -0600 Subject: [PATCH] [nostalgia/glutils] Make framebuffer default size 1x1 --- src/nostalgia/glutils/glutils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nostalgia/glutils/glutils.cpp b/src/nostalgia/glutils/glutils.cpp index 294655f97..c9950cc58 100644 --- a/src/nostalgia/glutils/glutils.cpp +++ b/src/nostalgia/glutils/glutils.cpp @@ -85,6 +85,8 @@ GLBuffer generateBuffer() noexcept { } FrameBuffer generateFrameBuffer(int width, int height) noexcept { + width = ox::max(1, width); + height = ox::max(1, height); FrameBuffer fb; fb.width = width; fb.height = height;