gl_engine: enhance portability with safety
hermet opened this issue · comments
Hermet Park commented
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.