From e1161a3773a35fdb7d94eb5263b1ab9a85e565fb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 21 Nov 2019 03:50:52 +0100 Subject: Bug 1156: EGL-GBM: Cherry pick changes .. --- src/newt/native/gbm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/newt/native') diff --git a/src/newt/native/gbm.c b/src/newt/native/gbm.c index 19efb8d7a..cdb1223f6 100644 --- a/src/newt/native/gbm.c +++ b/src/newt/native/gbm.c @@ -1,3 +1,6 @@ +#include +#include + #include "jogamp_newt_driver_gbm_DisplayDriver.h" #include "jogamp_newt_driver_gbm_ScreenDriver.h" #include "jogamp_newt_driver_gbm_WindowDriver.h" @@ -28,7 +31,7 @@ struct drm_fb { * Method: initGbm * Signature: (J)V */ -JNIEXPORT void JNICALL Java_jogamp_newt_driver_gbm_DisplayDriver_initGbm +JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_gbm_DisplayDriver_initGbm (JNIEnv *env, jobject this){ static const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "exynos", "msm" @@ -141,4 +144,4 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_gbm_WindowDriver_createSurface return -1; } return gbm.surface; - } \ No newline at end of file + } -- cgit v1.2.3