Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.2.0
-
None
-
Windows 7 64 bit, QtSDK 5.2.0, Qt Creator 3.0.0, GCC 4.6, Nexus 4, Android 4.3, build for armeabi (not armv7)
Description
Hello! I am creating a QtQuick 1.1 application for Android, it is very laggy by default, so I had an idea to use openGL, I created a QGLWidget and used it as a viewport for QApplicationViewer
QGLFormat format = QGLFormat(QGL::DirectRendering); // I tried also DoubleBuffer and SimpleBuffer, the same result
format.setSampleBuffers(false);
QGLWidget *glWidget = new QGLWidget(format);
glWidget->setAutoFillBackground(true);
viewer.setViewport(glWidget);
Ok, now no lags, but now, when I hide my application (go to homescreen) and restore - it crashes with SIGSERV (11).
I got a log:
W/Qt (26450): ..\src\androidjnimain.cpp:687 (void updateWindow(JNIEnv*, jobject)): updateWindow: Dirty screen not implemented yet on OpenGL
W/Adreno200-EGL(26450): <qeglDrvAPI_eglGetConfigAttrib:461>: EGL_BAD_CONFIG
W/Adreno200-EGL(26450): <qeglDrvAPI_eglCreateWindowSurface:918>: EGL_BAD_CONFIG
F/Qt (26450): ..\..\eglfs\qeglfswindow.cpp:185 (virtual void QEglFSWindow::resetSurface()): EGL Error : Could not create the egl surface: error = 0x3005
It seems updateWindow is not implemented for OpenGL
Screenshot of call stack, disassembler view and the example in the attachment
Attachments
Issue Links
- is replaced by
-
QTBUG-34650 Android: QGLWidget not supported
- Closed