thorvg / thorvg

Thor Vector Graphics is a lightweight portable library used for drawing vector-based scenes and animations including SVG and Lottie. It can be freely utilized across various software platforms and applications to visualize graphical contents.

Home Page:https://www.thorvg.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gl_engine: enhance portability with safety

hermet opened this issue · comments

GlCanvas::gen() should return nullptr when GL is not available on the current system.
Alternatively, GlCanvas::target(int32_t id, uint32_t w, uint32_t h) should return NonSupported.