We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 672f2a6 + 45a4f63 commit 03a07f9Copy full SHA for 03a07f9
src/formats/ktx2.rs
@@ -6,7 +6,7 @@ use crate::{
6
};
7
8
pub fn size<R: BufRead + Seek>(reader: &mut R) -> ImageResult<ImageSize> {
9
- reader.seek(SeekFrom::Start(16))?;
+ reader.seek(SeekFrom::Start(20))?;
10
11
let width = read_u32(reader, &Endian::Little)? as usize;
12
let height = read_u32(reader, &Endian::Little)? as usize;
tests/ktx2.rs
@@ -8,7 +8,7 @@ fn ktx2_test() {
assert_eq!(
dim,
ImageSize {
- width: 1,
+ width: 256,
height: 256
13
}
14
);
0 commit comments