Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-06-16 15:34:45 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-06-16 15:34:45 +0400
commit4091851043d16d82b1f9098d5cb0bf0d5edd4cb3 (patch)
treed1659cf953012b05d6e1e1cbf5a72ea636112864 /source/blender/src/toolbox.c
parentddec3db89d10ac84f1e2c3cdd7a2fcd5134b46f2 (diff)
Replace all glFinish() with glFlush().
This is supposed to fix gradual slowdown of Blender interface on ATI cards.
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r--source/blender/src/toolbox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c
index dc5adb4bc68..26a947d7022 100644
--- a/source/blender/src/toolbox.c
+++ b/source/blender/src/toolbox.c
@@ -500,7 +500,7 @@ void bgnpupdraw(int startx, int starty, int endx, int endy)
glReadBuffer(GL_FRONT);
glDrawBuffer(GL_FRONT);
- glFinish();
+ glFlush();
my_get_frontbuffer_image(startx-1, starty-4, endx-startx+5, endy-starty+6);
@@ -512,7 +512,7 @@ void bgnpupdraw(int startx, int starty, int endx, int endy)
void endpupdraw(void)
{
- glFinish();
+ glFlush();
my_put_frontbuffer_image();
if(tboldwin) {
@@ -939,7 +939,7 @@ void drawtoolbox(void)
}
}
- glFinish(); /* for geforce, to show it in the frontbuffer */
+ glFlush(); /* for geforce, to show it in the frontbuffer */
}
@@ -1020,7 +1020,7 @@ void toolbox(void)
tbox_drawelem(actx, acty, 3);
}
- glFinish(); /* for geforce, to show it in the frontbuffer */
+ glFlush(); /* for geforce, to show it in the frontbuffer */
xo= actx;
yo= acty;