summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-06-07 16:36:52 +0200
committerYorhel <git@yorhel.nl>2010-06-07 16:36:52 +0200
commitef4a06409129c7a7efc057d3ec61b8b3f459eaae (patch)
tree0f8aefa744adad76abb65a65186d6594479958ab
parent3531f6ac871b414cd17bae4cc4e593b6bfb54a31 (diff)
Enable multisample in glut initializationHEADmaster
So we now have FSAA. Based on my googling sessions, not all implementations of glut actually honor the multisample setting. The freeglut 2.6.0 on my system does, however.
-rw-r--r--main.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.ml b/main.ml
index 5efefee..4a15571 100644
--- a/main.ml
+++ b/main.ml
@@ -23,7 +23,7 @@ let drawFrame () =
let _ =
(* init glut *)
ignore (Glut.init Sys.argv);
- Glut.initDisplayMode ~alpha:true ~depth:true ~double_buffer:true ();
+ Glut.initDisplayMode ~alpha:true ~depth:true ~double_buffer:true ~multisample:true ();
Glut.initWindowSize (truncate width) (truncate height);
ignore (Glut.createWindow "De Neuspeuteraars!");
Glut.idleFunc (Some drawFrame);