File tree 1 file changed +4
-7
lines changed
src/java.desktop/macosx/classes/sun/java2d
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -90,16 +90,13 @@ private static void initJavaFlags() {
90
90
PropertyState metalState = getBooleanProp ("sun.java2d.metal" , PropertyState .UNSPECIFIED );
91
91
92
92
// Handle invalid combinations to use the default rendering pipeline
93
- // Current default rendering pipeline is Metal
94
- // (The default can be changed to OpenGL in future just by toggling two states in this if condition block)
95
- // ---------------------------------------------------------------------
96
- // TODO : Revert default rendering pipeline to OpenGL
97
- // ---------------------------------------------------------------------
93
+ // Current default rendering pipeline is OpenGL
94
+ // (The default can be changed to Metal in future just by toggling two states in this if condition block)
98
95
if ((oglState == PropertyState .UNSPECIFIED && metalState == PropertyState .UNSPECIFIED ) ||
99
96
(oglState == PropertyState .DISABLED && metalState == PropertyState .DISABLED ) ||
100
97
(oglState == PropertyState .ENABLED && metalState == PropertyState .ENABLED )) {
101
- metalState = PropertyState .ENABLED ; // Enable default pipeline
102
- oglState = PropertyState .DISABLED ; // Disable non-default pipeline
98
+ oglState = PropertyState .ENABLED ; // Enable default pipeline
99
+ metalState = PropertyState .DISABLED ; // Disable non-default pipeline
103
100
}
104
101
105
102
if (metalState == PropertyState .UNSPECIFIED ) {
You can’t perform that action at this time.
0 commit comments