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/swapbuffers.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/swapbuffers.c')
-rw-r--r--source/blender/src/swapbuffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/swapbuffers.c b/source/blender/src/swapbuffers.c
index 8cc25254a29..3cedfdf6302 100644
--- a/source/blender/src/swapbuffers.c
+++ b/source/blender/src/swapbuffers.c
@@ -82,12 +82,12 @@ static void copy_back_to_front(void)
glDrawBuffer(GL_FRONT);
glCopyPixels(0, 0, winx, winy, GL_COLOR);
glDrawBuffer(GL_BACK);
- glFinish();
+ glFlush();
if (actually_swap) {
glRasterPos2f(-0.5,-0.5);
glDrawPixels(winx, winy, GL_RGBA, GL_UNSIGNED_BYTE, data);
- glFinish();
+ glFlush();
free(data);
}
}