diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-04 17:14:06 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-04 17:14:06 +0300 |
commit | f7cb86df3a9ceccc4d649e42735732a608169157 (patch) | |
tree | 558a9ba43708a2213b1afa8f46d79f5daa140bc6 /source/blender/windowmanager/intern/wm_subwindow.c | |
parent | 74f9e98c828c17910405092785633373d4ae88e8 (diff) |
2.5
Think global, act local!
The old favorite G.scene gone! Man... that took almost 2 days.
Also removed G.curscreen and G.edbo.
Not everything could get solved; here's some notes.
- modifiers now store current scene in ModifierData. This is not
meant for permanent, but it can probably stick there until we
cleaned the anim system and depsgraph to cope better with
timing issues.
- Game engine G.scene should become an argument for staring it.
Didn't solve this yet.
- Texture nodes should get scene cfra, but the current implementation
is too tightly wrapped to do it easily.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_subwindow.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_subwindow.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c index 29baf9f4cc5..8431317f4d9 100644 --- a/source/blender/windowmanager/intern/wm_subwindow.c +++ b/source/blender/windowmanager/intern/wm_subwindow.c @@ -490,46 +490,3 @@ static int is_a_really_crappy_nvidia_card(void) { } #endif -void myswapbuffers(void) /* XXX */ -{ - ScrArea *sa; - - sa= G.curscreen->areabase.first; - while(sa) { -// if(sa->win_swap==WIN_BACK_OK) sa->win_swap= WIN_FRONT_OK; -// if(sa->head_swap==WIN_BACK_OK) sa->head_swap= WIN_FRONT_OK; - - sa= sa->next; - } - - /* HACK, some windows drivers feel they should honor the scissor - * test when swapping buffers, disable the test while swapping - * on WIN32. (namely Matrox and NVidia's new drivers around Oct 1 2001) - * - zr - */ - -#ifdef WIN32 - /* HACK, in some NVidia driver release some kind of - * fancy optimiziation (I presume) was put in which for - * some reason causes parts of the buffer not to be - * swapped. One way to defeat it is the following wierd - * code (which we only do for nvidia cards). This should - * be removed if NVidia fixes their drivers. - zr - */ - if (is_a_really_crappy_nvidia_card()) { - glDrawBuffer(GL_FRONT); - - glBegin(GL_LINES); - glEnd(); - - glDrawBuffer(GL_BACK); - } - - glDisable(GL_SCISSOR_TEST); -// window_swap_buffers(winlay_mainwindow); - glEnable(GL_SCISSOR_TEST); -#else -// window_swap_buffers(winlay_mainwindow); -#endif -} - |