summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qoffscreensurface.h
diff options
context:
space:
mode:
authorMarius Kittler <mariuskittler@gmx.de>2021-05-08 01:55:19 +0200
committerMarius Kittler <mariuskittler@gmx.de>2021-05-10 10:49:25 +0200
commit590f70a849d85c438385c313fb452f528fd304a4 (patch)
treeba421d3363952996b6c8818d21893bbb2577558c /src/gui/kernel/qoffscreensurface.h
parent4d4eb11fe340bf0b3a1ce0caae62d9319bf941cf (diff)
Fix passing QJniEnvironment to ANativeWindow_fromSurface
The function ANativeWindow_fromSurface (as declared by `$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/native_window_jni.h` from version r22.b of the Android NDK) takes a `JNIEnv*` so `.jniEnv()` must be used. This prevents the following compilation error: ``` error: no matching function for call to 'ANativeWindow_f romSurface' m_nativeWindow = ANativeWindow_fromSurface(env, m_androidSurfaceObject.object()); ^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/native_window_jni.h:45:16: note: candidate function not viable: no known conversion from 'QJniEnvironment' t o 'JNIEnv *' (aka '_JNIEnv *') for 1st argument ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface); ^ 1 error generated. ``` Pick-to: 6.1 Change-Id: I70d75cb7edc5875314fcb8a70d51d0ef40442101 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/gui/kernel/qoffscreensurface.h')
0 files changed, 0 insertions, 0 deletions