path: root/src/android
diff options
authorBogDan Vatra <>2015-01-08 17:11:43 +0200
committerBogDan Vatra <>2015-01-10 16:43:01 +0100
commita0737f65a62a5d72f15f5f1196b86f16605d936b (patch)
tree63cb34931401d6086390388a063a8d71f4bf8c60 /src/android
parent05d39ec9c0428696d3d523e6b024df59d456fc59 (diff)
Fixes for surface creation/destruction
- After reset a surface we must call makeCurrent before we are usign swapBuffers. - No need to set the surface in QPA when surfaceCreated are called in, some time the OpenGL surface is not fully initialized at this stage. Is better to wait for surfaceChanged which is always fired at least once. - DO NOT reset m_surfaceId to 1 when there is no surface. The problem is that if we have one surface and when we distory it we don't (need to) wait for its surfaceChanged/surfaceDestroyed notifications, and if we create another one quicly it will have the same id (1). Task-number: QTBUG-39712 Change-Id: I2aa31e5b59d81ef3b03624d4636a4381eea6d543 Reviewed-by: Eskil Abrahamsen Blomfeldt <>
Diffstat (limited to 'src/android')
1 files changed, 0 insertions, 2 deletions
diff --git a/src/android/jar/src/org/qtproject/qt5/android/ b/src/android/jar/src/org/qtproject/qt5/android/
index 34fc31b222..516671739e 100644
--- a/src/android/jar/src/org/qtproject/qt5/android/
+++ b/src/android/jar/src/org/qtproject/qt5/android/
@@ -45,7 +45,6 @@ package;
import android.content.Context;
-import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
@@ -87,7 +86,6 @@ public class QtSurface extends SurfaceView implements SurfaceHolder.Callback
public void surfaceCreated(SurfaceHolder holder)
- QtNative.setSurface(getId(), holder.getSurface(), getWidth(), getHeight());