Use mjrf functions from within other mjrf functions.

PiperOrigin-RevId: 892234323
Change-Id: I70ff01121764b552da84bdcc9b01527ae138dfea
This commit is contained in:
Haroon Qureshi
2026-03-31 03:36:23 -07:00
committed by Copybara-Service
parent ab7b78caa9
commit bcaa0a8e6a
@@ -58,7 +58,7 @@ void mjrf_defaultContext(mjrContext* con) {
}
void mjrf_makeContext(const mjModel* m, mjrContext* con, int fontscale) {
mjr_freeContext(con);
mjrf_freeContext(con);
mjrFilamentConfig cfg;
mjrf_defaultFilamentConfig(&cfg);
cfg.width = m->vis.global.offwidth;
@@ -72,7 +72,7 @@ void mjrf_freeContext(mjrContext* con) {
delete g_filament_context;
g_filament_context = nullptr;
}
mjr_defaultContext(con);
mjrf_defaultContext(con);
}
void mjrf_render(mjrRect viewport, mjvScene* scn, const mjrContext* con) {