mirror of https://github.com/adamdruppe/arsd.git
set context when initializing
This commit is contained in:
parent
99b3252594
commit
0b145ed3b5
|
@ -12222,6 +12222,7 @@ version(nanovg_bindbc_opengl_bindings) {
|
|||
};
|
||||
|
||||
this.visibleForTheFirstTime = delegate() {
|
||||
this.setAsCurrentOpenGlContext();
|
||||
nvg = nvgCreateContext();
|
||||
if(nvg is null) throw new Exception("cannot initialize NanoVega");
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue