Add in NANOVG_GLES2 for possible future case usage
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
453789c38a
commit
79e74ef909
1 changed files with 4 additions and 0 deletions
|
@ -135,7 +135,11 @@ void WindowInit(Window* const window, DISTRHO_NAMESPACE::UI* const ui)
|
||||||
window->internal->ui = ui;
|
window->internal->ui = ui;
|
||||||
|
|
||||||
window->vg = ui->getContext();
|
window->vg = ui->getContext();
|
||||||
|
#ifdef NANOVG_GLES2
|
||||||
|
window->fbVg = nvgCreateSharedGLES2(window->vg, NVG_ANTIALIAS);
|
||||||
|
#else
|
||||||
window->fbVg = nvgCreateSharedGL2(window->vg, NVG_ANTIALIAS);
|
window->fbVg = nvgCreateSharedGL2(window->vg, NVG_ANTIALIAS);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Load default Blendish font
|
// Load default Blendish font
|
||||||
window->uiFont = window->loadFont(asset::system("res/fonts/DejaVuSans.ttf"));
|
window->uiFont = window->loadFont(asset::system("res/fonts/DejaVuSans.ttf"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue