aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-04 05:03:35 +0100
committerSven Gothel <[email protected]>2023-03-04 05:03:35 +0100
commit64e741cbdcc0cc22f5b59fca01fa031879eff68c (patch)
tree47617347518729f91421455e3de0fec53d85db70 /src/newt/classes/jogamp
parentbe56e83a48e0d0701dc20fe30009cc82b82a4f4b (diff)
EGLGraphicsDevice: Cleanup and enhance API doc for clarity ...
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/driver/bcm/egl/DisplayDriver.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/bcm/egl/DisplayDriver.java b/src/newt/classes/jogamp/newt/driver/bcm/egl/DisplayDriver.java
index a65bd1e4c..99d9cc079 100644
--- a/src/newt/classes/jogamp/newt/driver/bcm/egl/DisplayDriver.java
+++ b/src/newt/classes/jogamp/newt/driver/bcm/egl/DisplayDriver.java
@@ -63,10 +63,7 @@ public class DisplayDriver extends jogamp.newt.DisplayImpl {
@Override
protected void createNativeImpl() {
final long handle = CreateDisplay(ScreenDriver.fixedWidth, ScreenDriver.fixedHeight);
- if (handle == EGL.EGL_NO_DISPLAY) {
- throw new NativeWindowException("BC EGL CreateDisplay failed");
- }
- aDevice = new EGLGraphicsDevice(EGL.EGL_DEFAULT_DISPLAY, handle, AbstractGraphicsDevice.DEFAULT_CONNECTION, AbstractGraphicsDevice.DEFAULT_UNIT, null);
+ aDevice = new EGLGraphicsDevice(EGL.EGL_DEFAULT_DISPLAY, handle, AbstractGraphicsDevice.DEFAULT_CONNECTION, AbstractGraphicsDevice.DEFAULT_UNIT);
}
@Override