1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Do not upload 2D texture for glyph with null bitmap.

This commit is contained in:
Sergey Lipskiy 2018-04-14 19:25:10 +07:00
parent c01c0d5166
commit c57eaf5285

View File

@ -161,12 +161,14 @@ struct Atlas {
ox = 0;
}
updateParams.x = ox;
updateParams.y = oy;
updateParams.width = g->bitmap.width;
updateParams.height = g->bitmap.rows;
updateParams.data = g->bitmap.buffer;
gfxContext.update2DTexture(updateParams);
if (g->bitmap.buffer != nullptr) {
updateParams.x = ox;
updateParams.y = oy;
updateParams.width = g->bitmap.width;
updateParams.height = g->bitmap.rows;
updateParams.data = g->bitmap.buffer;
gfxContext.update2DTexture(updateParams);
}
c[i].ax = _FIXED2FLOAT(g->advance.x, 6);
c[i].ay = _FIXED2FLOAT(g->advance.y, 6);