fix nul update on swap

SVN revision: 28556
This commit is contained in:
Carsten Haitzler 2007-03-04 17:06:13 +00:00
parent 1f1337d3a2
commit 9dc3984a39
2 changed files with 4 additions and 0 deletions

View File

@ -256,6 +256,7 @@ eng_output_redraws_next_update_push(void *data, void *surface, int x, int y, int
/* put back update surface.. in this case just unflag redraw */
// printf("GL: update done.\n");
re->win->draw.redraw = 0;
re->win->draw.drew = 1;
}
static void
@ -264,6 +265,8 @@ eng_output_flush(void *data)
Render_Engine *re;
re = (Render_Engine *)data;
if (!re->win->draw.drew) return;
re->win->draw.drew = 0;
// printf("GL: flush your mush!\n");
eng_window_use(re->win);

View File

@ -19,6 +19,7 @@ struct _Evas_GL_X11_Window
Evas_GL_Context *gl_context;
struct {
int redraw : 1;
int drew : 1;
int x1, y1, x2, y2;
} draw;
};