Fix various MuJoCo Studio build issues on Windows, MacOS and Linux

PiperOrigin-RevId: 833313973
Change-Id: I7ec181374e0bb49c32420d025044c31f6fc3c657
This commit is contained in:
Matija Kecman
2025-11-17 06:34:43 -08:00
committed by Copybara-Service
parent a66cf303f8
commit 8eca9926dc
16 changed files with 108 additions and 67 deletions
@@ -132,13 +132,13 @@ void mjr_setBuffer(int framebuffer, mjrContext* con) {
}
void mjr_readPixels(unsigned char* rgb, float* depth, mjrRect viewport,
const mjrContext* con) {
const mjrContext* con) {
CheckFilamentContext();
g_filament_context->ReadPixels(viewport, rgb, depth);
}
void mjr_uploadFont(unsigned char* pixels, int width, int height, int bpp,
int id, const mjrContext* con) {
int id, const mjrContext* con) {
CheckFilamentContext();
if (bpp != 4) {
mju_error("Only 4bpp fonts are supported, got %d", bpp);