Skip to content
Browse files

MacOSX edit: Benchmark numbers were way off because of different beha…

…vior for oversized fullscreen windows.
  • Loading branch information...
1 parent 432ce56 commit 25c7742abc313a747161a9efa7d2eb601307b4b2 @stegu stegu committed Mar 27, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 benchmark/common/noisebench.c
View
5 benchmark/common/noisebench.c
@@ -359,7 +359,12 @@ int main(int argc, char *argv[]) {
glfwInit();
// Open the OpenGL window
+#ifdef __APPLE__
+ // MacOS X clips oversized fullscreen windows, it doesn't resize them
+ if( !glfwOpenWindow(1280, 800, 8,8,8,8, 32,0, GLFW_FULLSCREEN) )
+#else
if( !glfwOpenWindow(4096, 4096, 8,8,8,8, 32,0, GLFW_FULLSCREEN) )
+#endif
{
glfwTerminate(); // glfwOpenWindow failed, quit the program.
return 1;

0 comments on commit 25c7742

Please sign in to comment.
Something went wrong with that request. Please try again.