aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/bcm_egl.c
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2023-10-02 19:49:04 +0200
committerSven Gothel <sgothel@jausoft.com>2023-10-02 19:49:04 +0200
commit7a2ee84416989476b7b2fd05ce484a5c7fcf81e8 (patch)
treecbc6a26e3def4627bc0b99b944f419367bb0f481 /src/newt/native/bcm_egl.c
parentaf13e40ee502e69bb12e979e406c1a9793535482 (diff)
Bug 1470 - NEWT/JNI: Perform exception check and rethrow for all Java Callbacks as recommended
Diffstat (limited to 'src/newt/native/bcm_egl.c')
-rw-r--r--src/newt/native/bcm_egl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newt/native/bcm_egl.c b/src/newt/native/bcm_egl.c
index 9b960d278..88e214a1f 100644
--- a/src/newt/native/bcm_egl.c
+++ b/src/newt/native/bcm_egl.c
@@ -1,4 +1,5 @@
/*
+ * Copyright 2012-2023 JogAmp Community. All rights reserved.
* Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -144,6 +145,7 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_bcm_egl_WindowDriver_CreateWindo
return 0;
}
(*env)->CallVoidMethod(env, obj, windowCreatedID, (jint) cfgID, (jint)uiWidth, (jint)uiHeight);
+ NewtCommon_ExceptionCheck1_throwNewRuntimeException(env, "BcmEGLWindow.CreateWindow: Exception occured at windowCreated(..)");
DBG_PRINT( "[RealizeWindow.Create] ok: win %p, cfgid %d, %ux%u\n", window, cfgID, uiWidth, uiHeight);
// release and destroy already made context ..