diff --git a/nanovega.d b/nanovega.d index 50c3948..b7ec011 100644 --- a/nanovega.d +++ b/nanovega.d @@ -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"); };