diff --git a/src/kekengine/cpp/render/texture.cpp b/src/kekengine/cpp/render/texture.cpp index 83812e6..b258b78 100644 --- a/src/kekengine/cpp/render/texture.cpp +++ b/src/kekengine/cpp/render/texture.cpp @@ -33,7 +33,7 @@ Texture::Texture(std::string texturePath) { throw std::exception(); } - unsigned char *data = stbi_load_from_memory((stbi_uc *) buf->buffer, buf->length, &width, &height, &nrChannels, 0); + unsigned char *data = stbi_load_from_memory((stbi_uc *) buf->buffer, buf->length, &width, &height, &nrChannels, 3); delete buf; float borderColor[] = {1.0f, 0.0f, 1.0f, 1.0f};