Skip to content

Commit 235a231

Browse files
committed
fixup! JBR-8118 TextureWrapperImage for MTLTexture
use UnsupportedOperationException in createTextureWrapperSurfaceManager
1 parent 6430243 commit 235a231

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java.desktop/macosx/classes/sun/java2d/MacosxSurfaceManagerFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import java.awt.GraphicsConfiguration;
2929
import java.awt.Image;
30+
3031
import sun.awt.CGraphicsEnvironment;
3132
import sun.awt.image.SunVolatileImage;
3233
import sun.awt.image.SurfaceManager;
@@ -67,7 +68,7 @@ public SurfaceManager createTextureWrapperSurfaceManager(GraphicsConfiguration g
6768
if (gc instanceof MTLGraphicsConfig) {
6869
sd = MTLSurfaceData.createData((MTLGraphicsConfig) gc, image, texture);
6970
} else {
70-
throw new IllegalArgumentException("Unsupported GraphicsConfiguration");
71+
throw new UnsupportedOperationException("Unsupported GraphicsConfiguration");
7172
}
7273
return new TextureWrapperSurfaceManager(sd);
7374
}

0 commit comments

Comments
 (0)