diff --git a/basis/ui/backend/x11/x11.factor b/basis/ui/backend/x11/x11.factor index d43f814eef..4e69455865 100644 --- a/basis/ui/backend/x11/x11.factor +++ b/basis/ui/backend/x11/x11.factor @@ -30,7 +30,7 @@ M: world configure-event ! In case dimensions didn't change relayout-1 ; -PIXEL-FORMAT-ATTRIBUTE-TABLE: glx-visual { $ GLX_USE_GL $ GLX_RGBA } H{ +PIXEL-FORMAT-ATTRIBUTE-TABLE: glx-visual { $ GLX_RGBA } H{ { double-buffered { $ GLX_DOUBLEBUFFER } } { stereo { $ GLX_STEREO } } { color-bits { $ GLX_BUFFER_SIZE } } diff --git a/basis/ui/gadgets/worlds/worlds.factor b/basis/ui/gadgets/worlds/worlds.factor index cdee1ab02d..a63d64312b 100644 --- a/basis/ui/gadgets/worlds/worlds.factor +++ b/basis/ui/gadgets/worlds/worlds.factor @@ -20,7 +20,6 @@ CONSTANT: default-world-pixel-format-attributes { windowed double-buffered - T{ depth-bits { value 16 } } } CONSTANT: default-world-window-controls diff --git a/extra/nehe/2/2.factor b/extra/nehe/2/2.factor index d28bbdb904..0d6d498b37 100644 --- a/extra/nehe/2/2.factor +++ b/extra/nehe/2/2.factor @@ -39,5 +39,14 @@ M: nehe2-gadget draw-gadget* ( gadget -- ) -1.0 -1.0 0.0 glVertex3f ] do-state ; -MAIN-WINDOW: run2 { { title "NeHe Tutorial 2" } { pref-dim { $ width $ height } } } +MAIN-WINDOW: run2 + { + { title "NeHe Tutorial 2" } + { pref-dim { $ width $ height } } + { pixel-format-attributes { + windowed + double-buffered + T{ depth-bits { value 16 } } + } } + } >>gadgets ; diff --git a/extra/nehe/4/4.factor b/extra/nehe/4/4.factor index 0cddcfcaa3..0ca23570e9 100644 --- a/extra/nehe/4/4.factor +++ b/extra/nehe/4/4.factor @@ -68,5 +68,14 @@ M: nehe4-gadget graft* ( gadget -- ) M: nehe4-gadget ungraft* ( gadget -- ) t >>quit? drop ; -MAIN-WINDOW: run4 { { title "NeHe Tutorial 4" } { pref-dim { $ width $ height } } } - >>gadgets ; +MAIN-WINDOW: run4 + { + { title "NeHe Tutorial 4" } + { pref-dim { $ width $ height } } + { pixel-format-attributes { + windowed + double-buffered + T{ depth-bits { value 16 } } + } } + } + >>gadgets ; diff --git a/extra/nehe/5/5.factor b/extra/nehe/5/5.factor index e6f5c6e6ba..a0b6cddec6 100644 --- a/extra/nehe/5/5.factor +++ b/extra/nehe/5/5.factor @@ -120,5 +120,14 @@ M: nehe5-gadget graft* ( gadget -- ) M: nehe5-gadget ungraft* ( gadget -- ) t >>quit? drop ; -MAIN-WINDOW: run5 { { title "NeHe Tutorial 5" } { pref-dim { $ width $ height } } } - >>gadgets ; +MAIN-WINDOW: run4 + { + { title "NeHe Tutorial 5" } + { pref-dim { $ width $ height } } + { pixel-format-attributes { + windowed + double-buffered + T{ depth-bits { value 16 } } + } } + } + >>gadgets ;