Commit 0605638
committed
fix(dds): Fix broken reading of volumetric DDS files by emulating tiles
Fixes 5132.
Reading DDS volumetric files used to work, but was broken by PR 4669
last year, the one where we added all the span-oriented API calls.
At that time, I did not realize/remember that DDS files could be
volumetric, observed that all the (other) volumetric files only
supported tiled access, and so in the course of that API refactor, I
removed the z parameter from the new read_scanlines API.
I don't want to break ABI compatibility again for this, so the
solution I came up with in this PR is just to make DDS volume files
report themselves as "tiled", with each tile being (width x 1 x 1),
i.e. what used to be one scanline, and it all just works out.
Signed-off-by: Larry Gritz <lg@larrygritz.com>1 parent 59a3201 commit 0605638
1 file changed
+25
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
865 | 870 | | |
866 | 871 | | |
867 | 872 | | |
| |||
1042 | 1047 | | |
1043 | 1048 | | |
1044 | 1049 | | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1045 | 1070 | | |
1046 | 1071 | | |
1047 | 1072 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | 1073 | | |
1052 | 1074 | | |
1053 | 1075 | | |
| |||
0 commit comments