Cleanup
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
df5b687265
commit
b9279fc2b3
2 changed files with 3 additions and 23 deletions
|
@ -20,31 +20,16 @@
|
|||
#ifndef DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
# error wrong build 1
|
||||
#endif
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS && !defined(HEADLESS)
|
||||
# error wrong build 2
|
||||
#endif
|
||||
|
||||
// #if ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
// # define HEADLESS
|
||||
// #endif
|
||||
//
|
||||
// #ifndef HEADLESS
|
||||
// # include "OpenGL.hpp"
|
||||
// #endif
|
||||
|
||||
#include "nanovg.h"
|
||||
|
||||
// #ifdef HEADLESS
|
||||
struct NVGLUframebuffer;
|
||||
void nvgluBindFramebuffer(NVGLUframebuffer* fb) {}
|
||||
NVGLUframebuffer* nvgluCreateFramebuffer(NVGcontext* ctx, int w, int h, int imageFlags) { return nullptr; }
|
||||
void nvgluDeleteFramebuffer(NVGLUframebuffer* fb) {}
|
||||
// #else
|
||||
// # define NANOVG_GLES2_IMPLEMENTATION
|
||||
// # define NANOVG_FBO_VALID 1
|
||||
// # include "nanovg_gl.h"
|
||||
// # include "nanovg_gl_utils.h"
|
||||
// #endif
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 6)
|
||||
# pragma GCC diagnostic push
|
||||
|
@ -74,8 +59,3 @@ GLFWAPI int glfwGetKeyScancode(int) { return 0; }
|
|||
GLFWAPI double glfwGetTime(void) { return 0.0; }
|
||||
|
||||
}
|
||||
|
||||
// #ifndef HEADLESS
|
||||
// # define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
// # include "../src/Rack/dep/glfw/deps/stb_image_write.h"
|
||||
// #endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue