diff --git a/src/nostalgia/glutils/glutils.cpp b/src/nostalgia/glutils/glutils.cpp index 294655f9..c9950cc5 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;