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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue