Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
JDK-8240996: Lanai: rendering artifacts with external GPU
  • Loading branch information
Alexey Ushakov committed Mar 13, 2020
1 parent 6ff6db0 commit c02799eede852df14e7aae7168c7088983849c66
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLSurfaceData.m
@@ -69,6 +69,7 @@ static jboolean MTLSurfaceData_initTexture(BMTLSDOps *bmtlsdo, jboolean isOpaque
MTLContext* ctx = mtlsdo->configInfo->context;

MTLTextureDescriptor *textureDescriptor = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat: MTLPixelFormatBGRA8Unorm width: width height: height mipmapped: NO];
textureDescriptor.usage = MTLTextureUsageUnknown;
bmtlsdo->pTexture = [ctx.device newTextureWithDescriptor: textureDescriptor];

MTLTextureDescriptor *stencilDataDescriptor =

0 comments on commit c02799e

Please sign in to comment.