Skip to content

Commit 89a1f73

Browse files
committed
Fix catch parameter.
1 parent 930498a commit 89a1f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ktx/command_create.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ void CommandCreate::executeCreate() {
15151515
uint32_t bitLength;
15161516
try {
15171517
bitLength = target.format().channelBitLength();
1518-
} catch(std::runtime_error e) {
1518+
} catch(...) {
15191519
// This happens if channels have different bit length. Check just R.
15201520
// If format is something like RGB565, any channel length would fail
15211521
// the bitLength test so picking R doesn't matter.

0 commit comments

Comments
 (0)