Fonts should have const data.
PiperOrigin-RevId: 836624808 Change-Id: I984c94cc34ef22b875ddda87c59893aa7f38a8a3
This commit is contained in:
committed by
Copybara-Service
parent
bdaec5758b
commit
589e013d9b
@@ -137,8 +137,8 @@ void mjr_readPixels(unsigned char* rgb, float* depth, mjrRect viewport,
|
|||||||
g_filament_context->ReadPixels(viewport, rgb, depth);
|
g_filament_context->ReadPixels(viewport, rgb, depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
int id, const mjrContext* con) {
|
||||||
CheckFilamentContext();
|
CheckFilamentContext();
|
||||||
if (bpp != 4) {
|
if (bpp != 4) {
|
||||||
mju_error("Only 4bpp fonts are supported, got %d", bpp);
|
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);
|
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);
|
int id, const mjrContext* con);
|
||||||
|
|
||||||
MJAPI void mjr_setBuffer(int framebuffer, mjrContext* con);
|
MJAPI void mjr_setBuffer(int framebuffer, mjrContext* con);
|
||||||
|
|||||||
Reference in New Issue
Block a user