Browse Source

NVG fixes

gh-pages
falkTX 9 years ago
parent
commit
975189fefe
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      dgl/NanoVG.hpp

+ 7
- 1
dgl/NanoVG.hpp View File

@@ -780,7 +780,10 @@ public:
*/
NanoWidget(Window& parent)
: Widget(parent),
NanoVG() {}
NanoVG()
{
fInvertedY = true;
}

protected:
/**
@@ -796,9 +799,12 @@ private:
*/
void onDisplay() override
{
//glPushAttrib(GL_PIXEL_MODE_BIT|GL_STENCIL_BUFFER_BIT|GL_ENABLE_BIT);
beginFrame(getWidth(), getHeight());
onNanoDisplay();
endFrame();
//glPopAttrib();
glDisable(GL_CULL_FACE);
}

DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(NanoWidget)


Loading…
Cancel
Save