Using the MapViewAircraft SDK example:
case PANEL_SERVICE_POST_INSTALL:
{
NVGparams params;
params.userPtr = ctx;
params.edgeAntiAlias = true;
g_MapViewRadarNVGcontext[ctx] = nvgCreateInternal(¶ms);
nvgCreateFont(g_MapViewRadarNVGcontext[ctx], "sans-bold", "./data/Roboto-Bold.ttf");
mapViewTextureId = fsMapViewCreate(ctx, 2048, 2048, 0);
if (mapViewTextureId == -1)
{
return false;
}
......
When debugging:
Expected to get 2048,2048 back from fsRenderGetTextureSize.
Suspected corruption somewhere.
MapViewRadar.cpp (6.5 KB)