Fonts should have const data.

PiperOrigin-RevId: 836624808
Change-Id: I984c94cc34ef22b875ddda87c59893aa7f38a8a3
This commit is contained in:
Haroon Qureshi
2025-11-25 05:21:45 -08:00
committed by Copybara-Service
parent bdaec5758b
commit 589e013d9b
2 changed files with 3 additions and 3 deletions
@@ -137,8 +137,8 @@ void mjr_readPixels(unsigned char* rgb, float* depth, mjrRect viewport,
g_filament_context->ReadPixels(viewport, rgb, depth);
}
void mjr_uploadFont(unsigned char* pixels, int width, int height, int bpp,
int id, const mjrContext* con) {
void mjr_uploadFont(const unsigned char* pixels, int width, int height, int bpp,
int id, const mjrContext* con) {
CheckFilamentContext();
if (bpp != 4) {
mju_error("Only 4bpp fonts are supported, got %d", bpp);
@@ -70,7 +70,7 @@ MJAPI void mjr_uploadMesh(const mjModel* m, const mjrContext* con, int meshid);
MJAPI void mjr_uploadTexture(const mjModel* m, const mjrContext* con, int texid);
void mjr_uploadFont(unsigned char* pixels, int width, int height, int bpp,
void mjr_uploadFont(const unsigned char* pixels, int width, int height, int bpp,
int id, const mjrContext* con);
MJAPI void mjr_setBuffer(int framebuffer, mjrContext* con);