diff options
author | Sven Gothel <[email protected]> | 2023-03-04 05:23:45 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-04 05:23:45 +0100 |
commit | 0b796fe6963705a231bc1f24a5b4e6651b7e928f (patch) | |
tree | 6158d102da2a5c3137f1e6329a1e448ee1dd3a14 /src/jogl/classes/jogamp/opengl/ios | |
parent | 09f0018363778a6cbf594bc2bf71d899d36e3c46 (diff) |
GLDrawableFactoryImpl:createMutableSurfaceImpl(..): Pass orig AbstractGraphicsDevice to allow EGLDrawableFactory to use the original device's native-dislay-ID for sharing resources.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/ios')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/ios/eagl/IOSEAGLDrawableFactory.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jogl/classes/jogamp/opengl/ios/eagl/IOSEAGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/ios/eagl/IOSEAGLDrawableFactory.java index 329b76783..57b3d499c 100644 --- a/src/jogl/classes/jogamp/opengl/ios/eagl/IOSEAGLDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/ios/eagl/IOSEAGLDrawableFactory.java @@ -398,9 +398,9 @@ public class IOSEAGLDrawableFactory extends GLDrawableFactoryImpl { } @Override - protected ProxySurface createMutableSurfaceImpl(final AbstractGraphicsDevice deviceReq, final boolean createNewDevice, - final GLCapabilitiesImmutable capsChosen, final GLCapabilitiesImmutable capsRequested, - final GLCapabilitiesChooser chooser, final UpstreamSurfaceHook upstreamHook) { + protected ProxySurface createMutableSurfaceImpl(final AbstractGraphicsDevice deviceOrig, final AbstractGraphicsDevice deviceReq, + final boolean createNewDevice, final GLCapabilitiesImmutable capsChosen, + final GLCapabilitiesImmutable capsRequested, final GLCapabilitiesChooser chooser, final UpstreamSurfaceHook upstreamHook) { final IOSGraphicsDevice device; final boolean owning; if( createNewDevice || !(deviceReq instanceof IOSGraphicsDevice) ) { @@ -422,15 +422,15 @@ public class IOSEAGLDrawableFactory extends GLDrawableFactoryImpl { public final ProxySurface createDummySurfaceImpl(final AbstractGraphicsDevice deviceOrig, final AbstractGraphicsDevice device, final boolean createNewDevice, GLCapabilitiesImmutable chosenCaps, final GLCapabilitiesImmutable requestedCaps, final GLCapabilitiesChooser chooser, final int width, final int height) { chosenCaps = GLGraphicsConfigurationUtil.fixOnscreenGLCapabilities(chosenCaps); - return createMutableSurfaceImpl(device, createNewDevice, chosenCaps, requestedCaps, chooser, - new IOSDummyUpstreamSurfaceHook(width, height)); + return createMutableSurfaceImpl(deviceOrig, device, createNewDevice, chosenCaps, requestedCaps, + chooser, new IOSDummyUpstreamSurfaceHook(width, height)); } @Override - public final ProxySurface createSurfacelessImpl(AbstractGraphicsDevice deviceOrig, final AbstractGraphicsDevice device, + public final ProxySurface createSurfacelessImpl(final AbstractGraphicsDevice deviceOrig, final AbstractGraphicsDevice device, final boolean createNewDevice, GLCapabilitiesImmutable chosenCaps, final GLCapabilitiesImmutable requestedCaps, final GLCapabilitiesChooser chooser, final int width, final int height) { chosenCaps = GLGraphicsConfigurationUtil.fixOnscreenGLCapabilities(chosenCaps); - return createMutableSurfaceImpl(device, createNewDevice, chosenCaps, requestedCaps, chooser, new GenericUpstreamSurfacelessHook(width, height)); + return createMutableSurfaceImpl(deviceOrig, device, createNewDevice, chosenCaps, requestedCaps, chooser, new GenericUpstreamSurfacelessHook(width, height)); } @Override |