From b6579c5c4a9ea3ecdb16003c2c1f5584688cf5e5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 30 May 2013 09:07:46 +0000 Subject: [PATCH] From Wang Rui, "The osgdb_nvtt plugin needs to be updated to work with the latest NVTT library, which changes the interface slightly (adding a new pure virtual method endImage()). I've modified the source file and attached it here." --- src/osgPlugins/nvtt/NVTTImageProcessor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgPlugins/nvtt/NVTTImageProcessor.cpp b/src/osgPlugins/nvtt/NVTTImageProcessor.cpp index 5f88d77fb..7b89fe362 100644 --- a/src/osgPlugins/nvtt/NVTTImageProcessor.cpp +++ b/src/osgPlugins/nvtt/NVTTImageProcessor.cpp @@ -41,6 +41,8 @@ protected: /// Indicate the start of a new compressed image that's part of the final texture. virtual void beginImage(int size, int width, int height, int depth, int face, int miplevel); + virtual void endImage() {} + /// Output data. Compressed data is output as soon as it's generated to minimize memory allocations. virtual bool writeData(const void * data, int size); }; @@ -76,6 +78,7 @@ void NVTTProcessor::VPBErrorHandler::error(nvtt::Error e) case nvtt::Error_FileWrite: OSG_WARN<<" NVTT : file write error"<