Browse Source

do not convert channels

Kajetan Johannes Hammerle 2 years ago
parent
commit
74dd8f4982
1 changed files with 1 additions and 0 deletions
  1. 1 0
      images/PNGReader.cpp

+ 1 - 0
images/PNGReader.cpp

@@ -30,6 +30,7 @@ Error PNGReader::loadIntern(const char* path) {
 
     LodePNGState state;
     lodepng_state_init(&state);
+    state.decoder.color_convert = false;
     error = lodepng_decode(&data, &width, &height, &state, rawData, rawSize);
     if(error) {
         Error e = {"cannot decode file '"};