|
|
@ -22,7 +22,6 @@ void NanoVGContext::render(std::function<void(const cv::Size&)> fn) { |
|
|
|
fn(clglContext_.getSize()); |
|
|
|
fn(clglContext_.getSize()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void push() { |
|
|
|
void push() { |
|
|
|
#ifndef __EMSCRIPTEN__ |
|
|
|
#ifndef __EMSCRIPTEN__ |
|
|
|
GL_CHECK(glPushClientAttrib(GL_CLIENT_ALL_ATTRIB_BITS)); |
|
|
|
GL_CHECK(glPushClientAttrib(GL_CLIENT_ALL_ATTRIB_BITS)); |
|
|
@ -63,7 +62,6 @@ void NanoVGContext::begin() { |
|
|
|
GL_CHECK(glViewport(0, 0, w, h)); |
|
|
|
GL_CHECK(glViewport(0, 0, w, h)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void NanoVGContext::end() { |
|
|
|
void NanoVGContext::end() { |
|
|
|
//FIXME make nvgCancelFrame possible
|
|
|
|
//FIXME make nvgCancelFrame possible
|
|
|
|
nvgEndFrame(context_); |
|
|
|
nvgEndFrame(context_); |
|
|
|