summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaxguy <faxguy>2015-06-14 21:44:17 +0000
committerfaxguy <faxguy>2015-06-14 21:44:17 +0000
commita10a1e61448d226c274b4e561d63910dc3e12c1d (patch)
tree7bf5d78076a85593f8f117f18ff31709420858e5
parentfd750294bd910a54f3f6bb6798c1f9bcbb6ab8c0 (diff)
downloadlibtiff-a10a1e61448d226c274b4e561d63910dc3e12c1d.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.
-rw-r--r--ChangeLog3
-rw-r--r--tools/tiffgt.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f1218268..95260ea8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2015-06-14 Lee Howard <faxguy@howardsilvan.com>
+ * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
+ on Bugzilla Bug #2401. Appropriately call glFlush().
+
* tools/tiff2pdf.c: change ColorTransform from "0" to "1"
following Bugzilla Bug #2150.
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