Skip window screenshots and glBars module if using GLES

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-07-05 16:17:48 +01:00
parent 8bc997f2d3
commit d5f5e57e78
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 20 additions and 2 deletions

View file

@ -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));