Skip window screenshots and glBars module if using GLES
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
8bc997f2d3
commit
d5f5e57e78
3 changed files with 20 additions and 2 deletions
|
@ -456,6 +456,9 @@ void ImGuiWidget::drawFramebufferCommon(const Vec& fbSize, const float scaleFact
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(DGL_USE_GLES2) || defined(DGL_USE_GLES3) || defined(DGL_USE_OPENGL3)
|
||||
// TODO?
|
||||
#else
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glPushMatrix();
|
||||
glLoadIdentity();
|
||||
|
@ -464,6 +467,7 @@ void ImGuiWidget::drawFramebufferCommon(const Vec& fbSize, const float scaleFact
|
|||
glMatrixMode(GL_MODELVIEW);
|
||||
glPushMatrix();
|
||||
glLoadIdentity();
|
||||
#endif
|
||||
|
||||
io.DisplaySize = ImVec2(box.size.x * scaleFactor, box.size.y * scaleFactor);
|
||||
io.DisplayFramebufferScale = ImVec2(fbSize.x / (box.size.x * scaleFactor), fbSize.y / (box.size.y * scaleFactor));
|
||||
|
|
|
@ -890,7 +890,6 @@ static void initStatic__Cardinal()
|
|||
p->addModel(modelCardinalBlank);
|
||||
p->addModel(modelExpanderInputMIDI);
|
||||
p->addModel(modelExpanderOutputMIDI);
|
||||
p->addModel(modelGlBars);
|
||||
p->addModel(modelHostAudio2);
|
||||
p->addModel(modelHostAudio8);
|
||||
p->addModel(modelHostCV);
|
||||
|
@ -902,6 +901,11 @@ static void initStatic__Cardinal()
|
|||
p->addModel(modelHostParametersMap);
|
||||
p->addModel(modelHostTime);
|
||||
p->addModel(modelTextEditor);
|
||||
#ifndef DGL_USE_GLES
|
||||
p->addModel(modelGlBars);
|
||||
#else
|
||||
spl.removeModule("glBars");
|
||||
#endif
|
||||
#ifndef STATIC_BUILD
|
||||
p->addModel(modelAudioFile);
|
||||
p->addModel(modelCarla);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue