plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

Cammac avatar image
Cammac asked

Texture loading issue for displays.

The bug we are trying to describe is within the given function below. The function sometimes returns an ID of 0 which means it could not load the texture/buffer. The buffer is valid and so is the width/height, but this only happens for random textures and never happens to only one particular texture.

int t_id = nvgCreateImageMem(vg, 0, (unsigned char*)buffer, (*width) * (*height));

We have this issue across multiple projects and do not see this issue when the systems are run outside the sim. So when not interacting with the above SDK function.

Thanks,

buggaugesnanovg
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

0 Answers