[nostalgia/glutils] Make framebuffer default size 1x1
This commit is contained in:
parent
5ea36836bd
commit
2390ae9f7d
@ -85,6 +85,8 @@ GLBuffer generateBuffer() noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
FrameBuffer generateFrameBuffer(int width, int height) noexcept {
|
FrameBuffer generateFrameBuffer(int width, int height) noexcept {
|
||||||
|
width = ox::max(1, width);
|
||||||
|
height = ox::max(1, height);
|
||||||
FrameBuffer fb;
|
FrameBuffer fb;
|
||||||
fb.width = width;
|
fb.width = width;
|
||||||
fb.height = height;
|
fb.height = height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user