From 76939f073f4f119be46ccc5042280f79f0c44075 Mon Sep 17 00:00:00 2001 From: Lee Howard Date: Sun, 14 Jun 2015 21:44:17 +0000 Subject: [PATCH] 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. --- ChangeLog | 3 +++ tools/tiffgt.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f1218268..95260ea8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-06-14 Lee Howard + * 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