diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-19 15:43:21 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-19 15:43:21 +0300 |
commit | ab9e6f69a0b29517d4e5f8aa439c184656e29dda (patch) | |
tree | e7ffc8894f5d2b6bc9c2130ad15049c019db9396 /source/blender/src/mywindow.c | |
parent | 76766ed969507631acc99a2f68d4b8776f1ea22e (diff) |
- fixed bug caused by changing order of drawing buttons in material panel 2
the 'OB' and 'ME' buttons were not visible in all situations anymore...
Diffstat (limited to 'source/blender/src/mywindow.c')
-rw-r--r-- | source/blender/src/mywindow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/mywindow.c b/source/blender/src/mywindow.c index 060cef8abc5..988d8c6dd72 100644 --- a/source/blender/src/mywindow.c +++ b/source/blender/src/mywindow.c @@ -461,6 +461,9 @@ void myortho(float x1, float x2, float y1, float y2, float n, float f) void myortho2(float x1, float x2, float y1, float y2) { + /* prevent opengl from generating errors */ + if(x1==x2) x2+=1.0; + if(y1==y2) y2+=1.0; bwin_ortho(curswin, x1, x2, y1, y2, -1, 1); } |