From 5ad999efa5d46a2307dd4d452f0f4b9b2272fcd2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 30 Aug 2002 19:17:45 +0000 Subject: [PATCH] support broken SGI formats --- panda/src/pnmimagetypes/pnmFileTypeSGIReader.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/pnmimagetypes/pnmFileTypeSGIReader.cxx b/panda/src/pnmimagetypes/pnmFileTypeSGIReader.cxx index 2c7bf7c9d6..3082192976 100644 --- a/panda/src/pnmimagetypes/pnmFileTypeSGIReader.cxx +++ b/panda/src/pnmimagetypes/pnmFileTypeSGIReader.cxx @@ -266,11 +266,15 @@ read_header(istream *ifp, Header *head, const string &magic_number) { return false; } + // Actually, some old broken SGI image writers put garbage in this + // field, so just ignore it. + /* if (head->colormap != CMAP_NORMAL) { pnmimage_sgi_cat.error() << "Unsupported non-normal pixel data (" << head->colormap << ")\n"; return false; } + */ /* adjust ysize/zsize to dimension, just to be sure */