Don't write stuff when it not needed

This commit is contained in:
korenkonder
2024-08-31 21:01:49 +03:00
parent b16fc1f5fb
commit b2dee81b48
19 changed files with 1138 additions and 697 deletions
+2 -2
View File
@@ -206,11 +206,11 @@ HOOK(int32_t, FASTCALL, shader_get_index_by_name, 0x00000001405E4ED0, const char
}
HOOK(void, FASTCALL, env_set_blend_color, 0x00000001405E5600, float_t r, float_t g, float_t b, float_t a) {
rctx->obj_batch.g_blend_color = { r, g, b, a };
rctx->set_batch_blend_color({ r, g, b, a });
}
HOOK(void, FASTCALL, env_set_offset_color, 0x00000001405E5630, float_t r, float_t g, float_t b, float_t a) {
rctx->obj_batch.g_offset_color = { r, g, b, a };
rctx->set_batch_offset_color({ r, g, b, a });
}
HOOK(void, FASTCALL, set_render_defaults, 0x00000001401948B0) {