aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/javafx/newt/x11/X11Window.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/javafx/newt/x11/X11Window.java')
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/x11/X11Window.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/classes/com/sun/javafx/newt/x11/X11Window.java b/src/classes/com/sun/javafx/newt/x11/X11Window.java
index 395fad8c4..311ba7dae 100755
--- a/src/classes/com/sun/javafx/newt/x11/X11Window.java
+++ b/src/classes/com/sun/javafx/newt/x11/X11Window.java
@@ -35,6 +35,7 @@ package com.sun.javafx.newt.x11;
import com.sun.javafx.newt.*;
import com.sun.opengl.impl.*;
+import javax.media.opengl.GLCapabilities;
import javax.media.opengl.NativeWindowException;
public class X11Window extends Window {
@@ -57,7 +58,9 @@ public class X11Window extends Window {
return true;
}
- protected void createNative() {
+ protected void createNative(GLCapabilities caps) {
+ chosenCaps = (GLCapabilities) caps.clone(); // FIXME: visualID := f1(caps); caps := f2(visualID)
+ visualID = 0; // n/a
long w = CreateWindow(getDisplayHandle(), getScreenHandle(), getScreenIndex(), visualID, x, y, width, height);
if (w == 0 || w!=windowHandle) {
throw new RuntimeException("Error creating window: "+w);