diff options
author | lecoanet | 2005-05-25 08:26:27 +0000 |
---|---|---|
committer | lecoanet | 2005-05-25 08:26:27 +0000 |
commit | e96587e7c59b720f8c59aa42cef888dbaf03da3f (patch) | |
tree | de094444a1d2d23fbee1325ca49deaae7a28255a /generic/Text.c | |
parent | 6ed591d0ce60e7e942b1678df087ff195ac032a9 (diff) | |
download | tkzinc-e96587e7c59b720f8c59aa42cef888dbaf03da3f.zip tkzinc-e96587e7c59b720f8c59aa42cef888dbaf03da3f.tar.gz tkzinc-e96587e7c59b720f8c59aa42cef888dbaf03da3f.tar.bz2 tkzinc-e96587e7c59b720f8c59aa42cef888dbaf03da3f.tar.xz |
Need to reinstate the GL rendering context after using
Tk_MeasureChars or Tk_TextWidth under windows.
Diffstat (limited to 'generic/Text.c')
-rw-r--r-- | generic/Text.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/Text.c b/generic/Text.c index bc7c843..b2e83f8 100644 --- a/generic/Text.c +++ b/generic/Text.c @@ -1135,6 +1135,8 @@ Render(ZnItem item) ComputeCursor(item, &cursor_line, &cursor_offset); ComputeSelection(item, &sel_first_line, &sel_last_line, &sel_start_offset, &sel_stop_offset); + + ZnGLMakeCurrent(wi->dpy, wi); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); glPushMatrix(); |