Closed frutas-fruit closed 2 years ago
These kinds of problems you have to figure out for yourself, it's part of programming. The problem may very well be outside of the code snippet you posted. Then again it might just be typo in the font name or something. tex error is often OpenGL complaining about a wrong texture id. What helps is placing your nanovg code into known working code (like the nanovg demo) and get it to work there first.
These kinds of problems you have to figure out for yourself, it's part of programming.
This is an error which only cropped up after integrating NanoVG in my renderer (which already has a separate 2D backend running with no issues). So it makes perfect sense to open an issue here, because it could potentially be a bug in NanoVG itself (but equally could be a mistake(s) in my codebase).
What helps is placing your nanovg code into known working code (like the nanovg demo) and get it to work there first.
Yup, that's exactly what I've already done. The code above works perfectly fine with NVG_DEBUG
enabled in the demo version. I should note that all images/primitives/text etc is rendering and working as expected, it's just this error message that shows up. Anyhow, I don't see this a stopper currently (no observed issues atm), and given that it works normally in the demo, I'll mark this as closed.
So, If i read you correctly, you are saying these errors are happening with NVM_DEBUG
enabled in the unmodified nanovg demo as well ? If that's the case, I would keep the bug report open.
I've started getting this message show up and spam the terminal:
Error 00000501 after tex paint tex
I've enabledNVG_DEBUG
, so maybe that's why it prints these error messages excessively. Here is my nanovg render loop (called on update):I've tried using other render primitives like lines, rect and circles, but still returns that error. Any ideas what could be wrong?