[nostalgia/glutils] Make framebuffer default size 1x1

This commit is contained in:
Gary Talent 2022-02-10 02:17:23 -06:00
parent 5ea36836bd
commit 2390ae9f7d

View File

@ -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;