File tree 1 file changed +3
-2
lines changed
modules/javafx.graphics/src/main/native-glass/mac
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -93,8 +93,9 @@ - (CGLPixelFormatObj)_createPixelFormatWithDepth:(CGLPixelFormatAttribute)depth
93
93
};
94
94
GLint npix = 0 ;
95
95
CGLError err = CGLChoosePixelFormat (attributes, &pix, &npix);
96
- if ((err == kCGLNoError ) && (npix == 0 ) )
96
+ if (pix == NULL )
97
97
{
98
+ NSLog (@" CGLChoosePixelFormat: No matching pixel format exists for the requested attributes, trying again with limited capabilities" );
98
99
const CGLPixelFormatAttribute attributes2[] =
99
100
{
100
101
kCGLPFAAllowOfflineRenderers ,
You can’t perform that action at this time.
0 commit comments