renderer/null: return a more sensible fake viewport value

Avoids an assertion failure in r_framebuffer_viewport_rect
This commit is contained in:
Andrei Alexeyev 2021-08-22 03:07:42 +03:00
parent 9f2a3633ad
commit 593f756a70
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -102,7 +102,7 @@ static bool null_texture_type_query(TextureType type, TextureFlags flags, Pixmap
return true;
}
static FloatRect default_fb_viewport;
static FloatRect default_fb_viewport = { 0, 0, 800, 600 };
static Framebuffer* null_framebuffer_create(void) { return (void*)&placeholder; }
static void null_framebuffer_set_debug_label(Framebuffer *fb, const char *label) { }