diff options
author | lecoanet | 2006-10-17 11:45:49 +0000 |
---|---|---|
committer | lecoanet | 2006-10-17 11:45:49 +0000 |
commit | 8242e7e37564f1e2fd59d6f54a1e84197c9ffe69 (patch) | |
tree | 876dbdda942d168a3c4c6bd2be49baf5fb15c89f /generic | |
parent | 07c21af3026c4c5e95b20b0dd6726111a29cbc17 (diff) | |
download | tkzinc-8242e7e37564f1e2fd59d6f54a1e84197c9ffe69.zip tkzinc-8242e7e37564f1e2fd59d6f54a1e84197c9ffe69.tar.gz tkzinc-8242e7e37564f1e2fd59d6f54a1e84197c9ffe69.tar.bz2 tkzinc-8242e7e37564f1e2fd59d6f54a1e84197c9ffe69.tar.xz |
Fix an unreleased GL context in Render causing windows to give up
after a while.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Field.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/Field.c b/generic/Field.c index 3b8eb5e..395d63b 100644 --- a/generic/Field.c +++ b/generic/Field.c @@ -1998,8 +1998,9 @@ RenderField(ZnWInfo *wi, XColor *color; ZnReal xs; ZnTextInfo *ti = &wi->text_info; + ZnGLContextEntry *ce; - ZnGLMakeCurrent(wi->dpy, wi); + ce = ZnGLMakeCurrent(wi->dpy, wi); /* * Draw the background. */ @@ -2143,6 +2144,7 @@ RenderField(ZnWInfo *wi, } glEnd(); } + ZnGLReleaseContext(ce); } #endif |