Use the nvgCreateGL from DPF, fixes Windows builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
d6d0e0f734
commit
1af687aa6c
2 changed files with 3 additions and 4 deletions
2
dpf
2
dpf
|
@ -1 +1 @@
|
|||
Subproject commit 56a65f56a369e5b031aac5bbfb5999e974e32fad
|
||||
Subproject commit 0f31c24917043d6841fcc16efcb0e4e85bc51a89
|
|
@ -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…
Add table
Add a link
Reference in a new issue