diff options
Diffstat (limited to 'generic/tkZinc.c')
-rw-r--r-- | generic/tkZinc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/generic/tkZinc.c b/generic/tkZinc.c index d6e5215..5c577e7 100644 --- a/generic/tkZinc.c +++ b/generic/tkZinc.c @@ -1533,6 +1533,12 @@ ZincObjCmd(ClientData client_data, /* Main window associated with wi->damaged_area_w = wi->damaged_area_h = 0; /* + * Viewport item management init + */ + wi->nb_of_viewport_items = 0; + + + /* * Text management init. */ wi->text_info.sel_color = NULL; @@ -8805,6 +8811,13 @@ Repair(ZnWInfo *wi) //printf("Repair, scissors: %d\n", ISCLEAR(wi->flags, ZN_CONFIGURE_EVENT)); ce = ZnGLMakeCurrent(wi->dpy, wi); + + // PRE-RENDERING Method. Called for non directAccess viewports and other special effects + // ONLY IF WE HAVE AT LEAST ONE VIEWPORT + if (wi->nb_of_viewport_items > 0) { + wi->top_group->class->PreRender(wi->top_group); + } + glDrawBuffer(GL_BACK); #if defined(GL) && defined(ROTATION) |