Fix errors when cuda is not enabled.

This commit is contained in:
castano 2010-06-10 02:30:01 +00:00
parent b19cd63558
commit 42a641f0a5
3 changed files with 5 additions and 4 deletions

View File

@ -219,6 +219,7 @@ void CudaCompressor::compress(nvtt::InputFormat inputFormat, nvtt::AlphaMode alp
} }
#if defined HAVE_CUDA
void CudaCompressorDXT1::setup(cudaArray * image, const nvtt::CompressionOptions::Private & compressionOptions) void CudaCompressorDXT1::setup(cudaArray * image, const nvtt::CompressionOptions::Private & compressionOptions)
{ {
@ -290,7 +291,7 @@ void CudaCompressorDXT5::compressBlocks(uint first, uint count, uint w, uint h,
} }
#endif // defined HAVE_CUDA

View File

@ -25,7 +25,7 @@
#define NV_TT_CUDACOMPRESSORDXT_H #define NV_TT_CUDACOMPRESSORDXT_H
#include "nvtt/nvtt.h" #include "nvtt/nvtt.h"
#include "../Compressor.h" // CompressorInterface #include "nvtt/Compressor.h" // CompressorInterface
struct cudaArray; struct cudaArray;

View File

@ -21,8 +21,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE. // OTHER DEALINGS IN THE SOFTWARE.
#include <nvcore/Debug.h> #include "nvcore/Debug.h"
#include <nvcore/Library.h> #include "nvcore/Library.h"
#include "CudaUtils.h" #include "CudaUtils.h"
#if defined HAVE_CUDA #if defined HAVE_CUDA