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:
authorTon Roosendaal <ton@blender.org>2004-10-12 19:47:15 +0400
committerTon Roosendaal <ton@blender.org>2004-10-12 19:47:15 +0400
commit5ae1191a12929240d6f0b38e83ebfa0f72c5fa94 (patch)
tree58e752eabfe6ff825786ec62b05f05866a6fe1d3 /source/blender/src/swapbuffers.c
parentc957ec93dfabcd459bcf243075786a605d2d5314 (diff)
Added safety test for occurance of zero scaled areas in Blender. This
totally screws up opengl calls... If it detects a zero area now, it removes it and prints warning in terminal
Diffstat (limited to 'source/blender/src/swapbuffers.c')
-rw-r--r--source/blender/src/swapbuffers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/swapbuffers.c b/source/blender/src/swapbuffers.c
index 1a696747290..e0ae0e14632 100644
--- a/source/blender/src/swapbuffers.c
+++ b/source/blender/src/swapbuffers.c
@@ -169,6 +169,7 @@ static void draw_debug_win(int win)
glColor3ub(0, 0, 0);
glRasterPos2i(5, 5);
+ printf("win: %d - (%d, %d, %d, %d) %d\n", win, x, y, w, h, drawcounter++);
sprintf(buf, "win: %d - (%d, %d, %d, %d) %d\n", win, x, y, w, h, drawcounter++);
BMF_DrawString(G.font, buf);
}