renderer/api: init matrix and state stacks early

This commit is contained in:
Andrei Alexeyev 2024-05-13 03:29:43 +02:00
parent 7ed253f5c6
commit 83dfe8d5fa
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -33,6 +33,8 @@ static struct {
void r_init(void) {
_r_backend_init();
_r_state_init();
_r_mat_init();
}
typedef struct BlurInfo {
@ -42,9 +44,7 @@ typedef struct BlurInfo {
} BlurInfo;
void r_post_init(void) {
_r_state_init();
B.post_init();
_r_mat_init();
_r_models_init();
_r_sprite_batch_init();