]> gitweb.factorcode.org Git - factor.git/commitdiff
get rid of variable-based pixel format crap in cocoa.views
authorJoe Groff <arcata@gmail.com>
Fri, 1 May 2009 03:35:15 +0000 (22:35 -0500)
committerJoe Groff <arcata@gmail.com>
Fri, 1 May 2009 03:35:15 +0000 (22:35 -0500)
basis/cocoa/views/views.factor

index 3c60a6a7c1a276fecdc6321a33d60dee97d970ba..69d0f9861808df309ae9a5c7fceaa04f5079e9cc 100644 (file)
@@ -42,31 +42,14 @@ CONSTANT: NSOpenGLPFAAllowOfflineRenderers 96
 CONSTANT: NSOpenGLPFAVirtualScreenCount 128
 CONSTANT: NSOpenGLCPSwapInterval 222
 
-<PRIVATE
-
-SYMBOL: software-renderer?
-SYMBOL: multisample?
-
-PRIVATE>
-
-: with-software-renderer ( quot -- )
-    [ t software-renderer? ] dip with-variable ; inline
-
-: with-multisample ( quot -- )
-    [ t multisample? ] dip with-variable ; inline
-
 : <PixelFormat> ( attributes -- pixelfmt )
     NSOpenGLPixelFormat -> alloc swap [
         %
         NSOpenGLPFADepthSize , 16 ,
-        software-renderer? get [
-            NSOpenGLPFARendererID , kCGLRendererGenericFloatID ,
-        ] when
-        multisample? get [
-            NSOpenGLPFASupersample ,
-            NSOpenGLPFASampleBuffers , 1 ,
-            NSOpenGLPFASamples , 8 ,
-        ] when
+        ! NSOpenGLPFARendererID , kCGLRendererGenericFloatID ,
+        ! NSOpenGLPFASupersample ,
+        ! NSOpenGLPFASampleBuffers , 1 ,
+        ! NSOpenGLPFASamples , 8 ,
         0 ,
     ] int-array{ } make
     -> initWithAttributes: