diff --git a/src/nvtt/InputOptions.cpp b/src/nvtt/InputOptions.cpp index 8179799..ba3934e 100644 --- a/src/nvtt/InputOptions.cpp +++ b/src/nvtt/InputOptions.cpp @@ -124,7 +124,14 @@ void InputOptions::reset() // Setup the input image. -void InputOptions::setTextureLayout(TextureType type, int width, int height, int depth /*= 1*/, int arraySize /*= 1*/) +// Overload for ABI compatibility +void InputOptions::setTextureLayout(TextureType type, int width, int height, int depth /*= 1*/) +{ + setTextureLayout(type, width, height, depth, 1); +} + +// Setup the input image. +void InputOptions::setTextureLayout(TextureType type, int width, int height, int depth, int arraySize) { // Validate arguments. nvCheck(width >= 0); diff --git a/src/nvtt/nvtt.h b/src/nvtt/nvtt.h index d86a503..6a5a8a3 100644 --- a/src/nvtt/nvtt.h +++ b/src/nvtt/nvtt.h @@ -290,7 +290,9 @@ namespace nvtt NVTT_API void reset(); // Setup input layout. - NVTT_API void setTextureLayout(TextureType type, int w, int h, int d = 1, int arraySize = 1); + // Overload for ABI compatibility + NVTT_API void setTextureLayout(TextureType type, int w, int h, int d = 1 /*, arraysize = 1 */); + NVTT_API void setTextureLayout(TextureType type, int w, int h, int d, int arraySize); NVTT_API void resetTextureLayout(); // Set mipmap data. Copies the data.