summaryrefslogtreecommitdiff
path: root/tools/tiffgt.c
diff options
context:
space:
mode:
authorLee Howard <faxguy@howardsilvan.com>2015-06-14 21:44:17 +0000
committerLee Howard <faxguy@howardsilvan.com>2015-06-14 21:44:17 +0000
commit76939f073f4f119be46ccc5042280f79f0c44075 (patch)
tree463a8b37a97590a826044b06e7c7f1914a72aaba /tools/tiffgt.c
parent106157e7d7de1e561cba8be74c708adeedf9c3c5 (diff)
downloadlibtiff-git-76939f073f4f119be46ccc5042280f79f0c44075.tar.gz
From Jay Berkenbilt on Bug 2401.
An Ubuntu user noticed that tiffgt was not appropriately calling glFlush(), which was causing tiffgt to open blank windows in some cases. I'm not sure what the cases are, but my system happened to be one that saw blank windows, and the one-line fix the user provided was sufficient to solve it in my case.
Diffstat (limited to 'tools/tiffgt.c')
-rw-r--r--tools/tiffgt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/tiffgt.c b/tools/tiffgt.c
index 3907d302..8565111c 100644
--- a/tools/tiffgt.c
+++ b/tools/tiffgt.c
@@ -1,4 +1,4 @@
-/* $Id: tiffgt.c,v 1.11 2014-12-26 16:06:41 bfriesen Exp $ */
+/* $Id: tiffgt.c,v 1.12 2015-06-14 21:44:17 faxguy Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -287,6 +287,7 @@ static void
raster_draw(void)
{
glDrawPixels(img.width, img.height, GL_RGBA, GL_UNSIGNED_BYTE, (const GLvoid *) raster);
+ glFlush();
}
static void