git-svn-id: svn://db.shs.com.ru/libs@536 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-05-24 19:06:35 +00:00
parent 1082db07c6
commit 58fce3cd81
29 changed files with 394 additions and 599 deletions

View File

@@ -42,9 +42,7 @@ GLFramebuffer::~GLFramebuffer() {
void GLFramebuffer::resize(int width, int height, bool force) {
if ((wid == width) && (hei == height) && !force) return;
#if QT_VERSION >= 0x050600
initializeOpenGLFunctions();
#endif
wid = width;
hei = height;
deleteGLFramebuffer(fbo);
@@ -91,9 +89,7 @@ QImage GLFramebuffer::grab() const {
void GLFramebuffer::bind() {
if (is_changed) resize(wid, hei);
if (fbo == 0) return;
#if QT_VERSION >= 0x050600
initializeOpenGLFunctions();
#endif
glFlush();
glGetIntegerv(GL_VIEWPORT, prev_view);
//glClearError();