Skip to content

Commit

Permalink
Merge pull request #312 from Kopernicus/fix-palette-loader
Browse files Browse the repository at this point in the history
fix dds palette loader
Sigma88 authored Oct 3, 2018

Unverified

This user has not yet uploaded their public signing key.
2 parents 0bb7164 + fda884b commit c6d8417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kopernicus.OnDemand/OnDemandStorage.cs
Original file line number Diff line number Diff line change
@@ -444,7 +444,7 @@ public static Texture2D LoadTexture(String path, Boolean compress, Boolean uploa
int height = (int) dDSHeader.dwHeight;
long length = new FileInfo(path).Length;

if (length == width * height * bpp / 8 + 4 * colors)
if (length == width * height * bpp / 8 + 4 * colors + 128)
{
byte[] data = LoadRestOfReader(binaryReader);

0 comments on commit c6d8417

Please sign in to comment.