Android: Fix return value in createSurface()
When the function fails it should return -1 Change-Id: I132a1521897295e6e232126ca51e30d2e32656c8 Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
parent
9835a63dde
commit
4ce43b565f
@ -337,7 +337,7 @@ namespace QtAndroid
|
|||||||
{
|
{
|
||||||
QJNIEnvironmentPrivate env;
|
QJNIEnvironmentPrivate env;
|
||||||
if (!env)
|
if (!env)
|
||||||
return 0;
|
return -1;
|
||||||
|
|
||||||
m_surfacesMutex.lock();
|
m_surfacesMutex.lock();
|
||||||
int surfaceId = m_surfaceId++;
|
int surfaceId = m_surfaceId++;
|
||||||
|
Loading…
Reference in New Issue
Block a user