Fix various MuJoCo Studio build issues on Windows, MacOS and Linux
PiperOrigin-RevId: 833313973 Change-Id: I7ec181374e0bb49c32420d025044c31f6fc3c657
This commit is contained in:
committed by
Copybara-Service
parent
a66cf303f8
commit
8eca9926dc
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user