Skip to content
Permalink
Browse files
8263488: Verify CWarningWindow works with metal rendering pipeline
Reviewed-by: serb, pbansal, avu, kizune
  • Loading branch information
aghaisas committed Mar 22, 2021
1 parent 5a7f22a commit 42104e5575a73c5c163f0b8c8b686543a5117f42
Showing 1 changed file with 4 additions and 2 deletions.
@@ -92,8 +92,10 @@ public SurfaceData replaceSurfaceData() {
MTLGraphicsConfig gc = (MTLGraphicsConfig)getGraphicsConfiguration();
surfaceData = gc.createSurfaceData(this);
setScale(gc.getDevice().getScaleFactor());
Insets insets = peer.getInsets();
execute(ptr -> nativeSetInsets(ptr, insets.top, insets.left));
if (peer != null) {
Insets insets = peer.getInsets();
execute(ptr -> nativeSetInsets(ptr, insets.top, insets.left));
}
// the layer holds a reference to the buffer, which in
// turn has a reference back to this layer
if (surfaceData instanceof MTLSurfaceData) {

0 comments on commit 42104e5

Please sign in to comment.