- channels = bytestream2_get_byte(gbc);
- bytestream2_skip(gbc, 3); // unknown
+ version_major = bytestream2_get_byte(gbc) - 1;
+ version_minor = bytestream2_get_byte(gbc);
+
+ /* Encoder copies texture data when compression is not advantageous. */
+ if (bytestream2_get_byte(gbc)) {
+ msgcomp = "RAW";
+ ctx->tex_rat = 1;
+ decompress_tex = dxv_decompress_raw;
+ }
+
+ bytestream2_skip(gbc, 1); // unknown