Skip to content

Commit 69e4ef3

Browse files
fthevenetkevinrushforth
authored andcommitted
8235627: Blank stages when running JavaFX app in a macOS virtual machine
Reviewed-by: arapte, kcr
1 parent 5e0fb91 commit 69e4ef3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/javafx.graphics/src/main/native-glass/mac/GlassView3D.m

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -93,8 +93,9 @@ - (CGLPixelFormatObj)_createPixelFormatWithDepth:(CGLPixelFormatAttribute)depth
9393
};
9494
GLint npix = 0;
9595
CGLError err = CGLChoosePixelFormat(attributes, &pix, &npix);
96-
if ((err == kCGLNoError) && (npix == 0))
96+
if (pix == NULL)
9797
{
98+
NSLog(@"CGLChoosePixelFormat: No matching pixel format exists for the requested attributes, trying again with limited capabilities");
9899
const CGLPixelFormatAttribute attributes2[] =
99100
{
100101
kCGLPFAAllowOfflineRenderers,

0 commit comments

Comments
 (0)