Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cc37f4c authored by Tim Murray's avatar Tim Murray Committed by Gerrit Code Review
Browse files

Merge "Fix debug context."

parents 0539b7b4 b75c27e8
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -224,28 +224,28 @@ nDeviceCreate(JNIEnv *_env, jobject _this)
}
}


static void
static void
nDeviceDestroy(JNIEnv *_env, jobject _this, jint dev)
nDeviceDestroy(JNIEnv *_env, jobject _this, jlong dev)
{
{
    LOG_API("nDeviceDestroy");
    LOG_API("nDeviceDestroy");
    return rsDeviceDestroy((RsDevice)dev);
    return rsDeviceDestroy((RsDevice)dev);
}
}


static void
static void
nDeviceSetConfig(JNIEnv *_env, jobject _this, jint dev, jint p, jint value)
nDeviceSetConfig(JNIEnv *_env, jobject _this, jlong dev, jint p, jint value)
{
{
    LOG_API("nDeviceSetConfig  dev(%p), param(%i), value(%i)", (void *)dev, p, value);
    LOG_API("nDeviceSetConfig  dev(%p), param(%i), value(%i)", (void *)dev, p, value);
    return rsDeviceSetConfig((RsDevice)dev, (RsDeviceParam)p, value);
    return rsDeviceSetConfig((RsDevice)dev, (RsDeviceParam)p, value);
}
}


static jlong
static jlong
nContextCreate(JNIEnv *_env, jobject _this, jint dev, jint ver, jint sdkVer, jint ct)
nContextCreate(JNIEnv *_env, jobject _this, jlong dev, jint ver, jint sdkVer, jint ct)
{
{
    LOG_API("nContextCreate");
    LOG_API("nContextCreate");
    return (jint)rsContextCreate((RsDevice)dev, ver, sdkVer, (RsContextType)ct, 0);
    return (jint)rsContextCreate((RsDevice)dev, ver, sdkVer, (RsContextType)ct, 0);
}
}


static jlong
static jlong
nContextCreateGL(JNIEnv *_env, jobject _this, jint dev, jint ver, jint sdkVer,
nContextCreateGL(JNIEnv *_env, jobject _this, jlong dev, jint ver, jint sdkVer,
                 int colorMin, int colorPref,
                 int colorMin, int colorPref,
                 int alphaMin, int alphaPref,
                 int alphaMin, int alphaPref,
                 int depthMin, int depthPref,
                 int depthMin, int depthPref,