Qt5OpenGL: do not use pixel buffer for the moment

This commit is contained in:
wmayer
2017-03-11 16:29:13 +01:00
parent f8a14fc69e
commit d88b00bcdb
3 changed files with 3 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ void Thumbnail::SaveDocFile (Base::Writer &writer) const
#if !defined(HAVE_QT5_OPENGL)
bool pbuffer = QGLPixelBuffer::hasOpenGLPbuffers();
#else
bool pbuffer = QtGLFramebufferObject::hasOpenGLFramebufferObjects();
bool pbuffer = false;
#endif
if (App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetBool("DisablePBuffers",!pbuffer)) {

View File

@@ -557,7 +557,7 @@ void View3DInventor::print(QPrinter* printer)
#if !defined(HAVE_QT5_OPENGL)
bool pbuffer = QGLPixelBuffer::hasOpenGLPbuffers();
#else
bool pbuffer = QtGLFramebufferObject::hasOpenGLFramebufferObjects();
bool pbuffer = false;
#endif
if (App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetBool("DisablePBuffers",!pbuffer)) {

View File

@@ -749,7 +749,7 @@ Py::Object View3DInventorPy::saveImage(const Py::Tuple& args)
#if !defined(HAVE_QT5_OPENGL)
bool pbuffer = QGLPixelBuffer::hasOpenGLPbuffers();
#else
bool pbuffer = QtGLFramebufferObject::hasOpenGLFramebufferObjects();
bool pbuffer = false;
#endif
if (App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetBool("DisablePBuffers",!pbuffer)) {