Bug fix (from own collection)

After using clip-safe pixeldraw from glutil.c (preview render, bg picture)
the current viewport had to be re-set. Not doing so caused a 1 pixel offset
for live updates buttons (on mouse over)
This commit is contained in:
2005-01-30 13:13:31 +00:00
parent 996374bb5a
commit c94ec03a9e
2 changed files with 5 additions and 1 deletions

View File

@@ -446,7 +446,8 @@ static void draw_bgpic(void)
glBlendFunc(GL_ONE, GL_ZERO);
glDisable(GL_BLEND);
if(G.zbuf) glEnable(GL_DEPTH_TEST);
areawinset(curarea->win); // restore viewport / scissor
}
void timestr(double time, char *str)