Skip to content
Permalink
Browse files

8235627: Blank stages when running JavaFX app in a macOS virtual machine

Reviewed-by: arapte, kcr
  • Loading branch information
fthevenet authored and kevinrushforth committed Dec 20, 2019
1 parent 5e0fb91 commit 69e4ef35c1005b6cd61ae50e5c12d021723f8111
Showing with 3 additions and 2 deletions.
  1. +3 −2 modules/javafx.graphics/src/main/native-glass/mac/GlassView3D.m
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -93,8 +93,9 @@ - (CGLPixelFormatObj)_createPixelFormatWithDepth:(CGLPixelFormatAttribute)depth
};
GLint npix = 0;
CGLError err = CGLChoosePixelFormat(attributes, &pix, &npix);
if ((err == kCGLNoError) && (npix == 0))
if (pix == NULL)
{
NSLog(@"CGLChoosePixelFormat: No matching pixel format exists for the requested attributes, trying again with limited capabilities");
const CGLPixelFormatAttribute attributes2[] =
{
kCGLPFAAllowOfflineRenderers,

0 comments on commit 69e4ef3

Please sign in to comment.
You can’t perform that action at this time.