Skip to content

Commit

Permalink
brender: don't override the row_bytes stored on disk
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Sep 16, 2022
1 parent f638d79 commit 565c54b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/BRSRC13/CORE/PIXELMAP/pmfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ int FopRead_OLD_PIXELMAP(br_datafile* df, br_uint_32 id, br_uint_32 length, br_u
df->res = pp;
df->prims->struct_read(df, &br_old_pixelmap_F, pp);
df->res = NULL;
#if !defined(BRENDER_FIX_BUGS)
pp->row_bytes = (pmTypeInfo[pp->type].bits >> 3) * pp->width;
#endif
DfPush(DF_PIXELMAP, pp, 1);
return 0;
}
Expand All @@ -100,7 +102,9 @@ int FopRead_PIXELMAP(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_
df->res = pp;
df->prims->struct_read(df, &br_pixelmap_F, pp);
df->res = NULL;
#if !defined(BRENDER_FIX_BUGS)
pp->row_bytes = (pmTypeInfo[pp->type].bits >> 3) * pp->width;
#endif
DfPush(DF_PIXELMAP, pp, 1);
return 0;
}
Expand Down

0 comments on commit 565c54b

Please sign in to comment.