aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/javafx/newt/macosx/MacWindow.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/javafx/newt/macosx/MacWindow.java')
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/macosx/MacWindow.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/classes/com/sun/javafx/newt/macosx/MacWindow.java b/src/classes/com/sun/javafx/newt/macosx/MacWindow.java
index cebd356c2..8427bb607 100755
--- a/src/classes/com/sun/javafx/newt/macosx/MacWindow.java
+++ b/src/classes/com/sun/javafx/newt/macosx/MacWindow.java
@@ -33,6 +33,8 @@
package com.sun.javafx.newt.macosx;
+import javax.media.opengl.GLCapabilities;
+
import com.sun.javafx.newt.*;
import com.sun.opengl.impl.*;
@@ -51,7 +53,9 @@ public class MacWindow extends Window {
public MacWindow() {
}
- protected final void createNative() {
+ protected final void createNative(GLCapabilities caps) {
+ chosenCaps = (GLCapabilities) caps.clone(); // FIXME: visualID := f1(caps); caps := f2(visualID)
+ visualID = 0; // n/a
}
protected final void closeNative() {