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/drawmesh.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/drawmesh.c')
-rw-r--r--source/blender/src/drawmesh.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c
index 873b3c9ab9f..854f474f6bb 100644
--- a/source/blender/src/drawmesh.c
+++ b/source/blender/src/drawmesh.c
@@ -386,10 +386,13 @@ int set_tpage(TFace *tface)
glGenTextures(1, (GLuint *)bind);
- if(G.f & G_DEBUG) {
- printf("var1: %s\n", ima->id.name+2);
- printf("var1: %d, var2: %d\n", *bind, tpx);
- printf("var1: %d, var2: %d\n", fCurtile, tilemode);
+ if((G.f & G_DEBUG) || !*bind) {
+ GLenum error = glGetError();
+ printf("Texture: %s\n", ima->id.name+2);
+ printf("name: %d, tpx: %d\n", *bind, tpx);
+ printf("tile: %d, mode: %d\n", fCurtile, tilemode);
+ if (error)
+ printf("error: %d\n", error);
}
glBindTexture( GL_TEXTURE_2D, *bind);
@@ -416,8 +419,6 @@ int set_tpage(TFace *tface)
}
else glBindTexture( GL_TEXTURE_2D, *bind);
-
-
glEnable(GL_TEXTURE_2D);
fCurpage= ima;