diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2006-06-14 22:04:57 +0400 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2006-06-14 22:04:57 +0400 |
commit | b535b671b3c143840b48d0e065f64d44724b8602 (patch) | |
tree | 5e59d9d151b5d5fb45a7f1c1dd113aba66b5b91e /source | |
parent | c0c7c4ba143cea1e951a6e49be69736c86ef52b6 (diff) |
interim fix for the low end integrated intel graphic cards
until a better solution is found
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/interface.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index cad852aae0d..169f349e6ed 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -300,6 +300,18 @@ static uiOverDraw *ui_begin_overdraw(int minx, int miny, int maxx, int maxy) return od; } +#ifdef __APPLE__ +static int is_a_really_crappy_intel_card(void) { + static int well_is_it= -1; + + /* Do you understand the implication? Do you? */ + if (well_is_it==-1) + well_is_it= (strcmp((char*) glGetString(GL_VENDOR), "Intel Inc.") == 0); + + return well_is_it; +} +#endif + static void ui_flush_overdraw(uiOverDraw *od) { @@ -311,6 +323,10 @@ static void ui_flush_overdraw(uiOverDraw *od) myglCopyPixels(od->x, od->y, od->sx, od->sy, GL_COLOR); glEnable(GL_DITHER); glFlush(); +#ifdef __APPLE__ + if (is_a_really_crappy_intel_card()) + myswapbuffers(); //hack to get mac intel graphics to show menus +#endif glDrawBuffer(GL_BACK); } |