diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2004-11-08 00:55:13 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2004-11-08 00:55:13 +0300 |
commit | ee607bdf785d8c3c0dcbd732b6c326940361d6a2 (patch) | |
tree | ad336d165768968444fb54c303aef890aa8b2f43 /source | |
parent | 70c576ab37264f05480ef14d9720111f90577ca6 (diff) |
dont start maximised for small comps with 16 Mo VRAM.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/ghostwinlay.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/src/ghostwinlay.c b/source/blender/src/ghostwinlay.c index 2e147dac8cf..b6e49df47b5 100644 --- a/source/blender/src/ghostwinlay.c +++ b/source/blender/src/ghostwinlay.c @@ -67,6 +67,9 @@ #ifdef __APPLE__ #include <OpenGL/OpenGL.h> #include <Carbon/Carbon.h> + +/*declarations*/ +int checkAppleVideoCard(); #endif /// @@ -104,7 +107,9 @@ struct _Window { blender to start maximised if all the followings are true : - Renderer is OpenGL capable - Hardware acceleration - - VRAM > 8 Mo + - VRAM > 16 Mo + + we will bail out if VRAM is less than 8Mo */ static int macPrefState = 0; @@ -128,7 +133,7 @@ int checkAppleVideoCard() { theErr = CGLDescribeRenderer (rend, j, kCGLRPVideoMemory, &value); if (value > maxvram) maxvram = value; - if ((theErr == 0) && (value >= 10000000)) { + if ((theErr == 0) && (value >= 20000000)) { theErr = CGLDescribeRenderer (rend, j, kCGLRPAccelerated, &value); if ((theErr == 0) && (value != 0)) { theErr = CGLDescribeRenderer (rend, j, kCGLRPCompliant, &value); |