diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-02-24 13:05:52 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-02-24 13:05:52 +0300 |
commit | 0584c82ad7c1c2f133f617c52de28be15f6840d4 (patch) | |
tree | 565d3f1aea2c281c39268a6657d82c045f6e7935 /source/blender/editors | |
parent | 2f9a0dfe6429661f1d4bdf28398504df7fe98beb (diff) |
Fix break in drawscredge_area_draw when in fullscreen
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/screen_draw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_draw.c b/source/blender/editors/screen/screen_draw.c index 7ba3c4b82b7..7d85f9bb1c4 100644 --- a/source/blender/editors/screen/screen_draw.c +++ b/source/blender/editors/screen/screen_draw.c @@ -241,6 +241,10 @@ static void drawscredge_area_draw(int sizex, int sizey, short x1, short y1, shor if (y2 < sizey - 1) count += 2; if (y1 > 0) count += 2; + if (count == 0) { + return; + } + immBegin(GL_LINES, count); /* right border area */ |