Browse Source

Use the nvgCreateGL from DPF, fixes Windows builds

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
1af687aa6c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 3 additions and 4 deletions
  1. +1
    -1
      dpf
  2. +2
    -3
      src/override/Window.cpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 56a65f56a369e5b031aac5bbfb5999e974e32fad
Subproject commit 0f31c24917043d6841fcc16efcb0e4e85bc51a89

+ 2
- 3
src/override/Window.cpp View File

@@ -48,7 +48,6 @@
#include "../WindowParameters.hpp"

#ifndef DGL_NO_SHARED_RESOURCES
# include "NanoVG.hpp"
# include "src/Resources.hpp"
#endif

@@ -164,11 +163,11 @@ Window::Window() {

// Set up NanoVG
const int nvgFlags = NVG_ANTIALIAS;
vg = nvgCreateGL(nvgFlags);
DISTRHO_SAFE_ASSERT_RETURN(vg != nullptr,);
#ifdef NANOVG_GLES2
vg = nvgCreateGLES2(nvgFlags);
fbVg = nvgCreateSharedGLES2(vg, nvgFlags);
#else
vg = nvgCreateGL2(nvgFlags);
fbVg = nvgCreateSharedGL2(vg, nvgFlags);
#endif



Loading…
Cancel
Save