Fix after refactoring CPU compressors. Changes were not tested with CUDA enabled.
This commit is contained in:
parent
ab5265e642
commit
8d9bf5c0b3
@ -30,6 +30,7 @@
|
|||||||
#include <nvtt/CompressionOptions.h>
|
#include <nvtt/CompressionOptions.h>
|
||||||
#include <nvtt/OutputOptions.h>
|
#include <nvtt/OutputOptions.h>
|
||||||
#include <nvtt/QuickCompressDXT.h>
|
#include <nvtt/QuickCompressDXT.h>
|
||||||
|
#include <nvtt/OptimalCompressDXT.h>
|
||||||
|
|
||||||
#include "CudaCompressDXT.h"
|
#include "CudaCompressDXT.h"
|
||||||
#include "CudaUtils.h"
|
#include "CudaUtils.h"
|
||||||
@ -329,7 +330,7 @@ void CudaCompressor::compressDXT3(const CompressionOptions::Private & compressio
|
|||||||
for (uint i = 0; i < count; i++)
|
for (uint i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
ColorBlock rgba(blockLinearImage + (bn + i) * 16);
|
ColorBlock rgba(blockLinearImage + (bn + i) * 16);
|
||||||
QuickCompress::compressDXT3A(rgba, alphaBlocks + i);
|
OptimalCompress::compressDXT3A(rgba, alphaBlocks + i);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for errors.
|
// Check for errors.
|
||||||
|
Loading…
Reference in New Issue
Block a user