Fix places where generateMipmaps is called without proper usage (#9054)
This commit is contained in:
@@ -193,6 +193,7 @@ void loadNormalMap(Engine* engine, Texture** normalMap, const std::string& path)
|
||||
.height(uint32_t(h))
|
||||
.levels(0xff)
|
||||
.format(Texture::InternalFormat::RGB8)
|
||||
.usage(Texture::Usage::DEFAULT | Texture::Usage::GEN_MIPMAPPABLE)
|
||||
.build(*engine);
|
||||
Texture::PixelBufferDescriptor buffer(data, size_t(w * h * 3),
|
||||
Texture::Format::RGB, Texture::Type::UBYTE,
|
||||
@@ -220,6 +221,7 @@ void loadBaseColorMap(Engine* engine) {
|
||||
.height(uint32_t(h))
|
||||
.levels(0xff)
|
||||
.format(Texture::InternalFormat::SRGB8)
|
||||
.usage(Texture::Usage::DEFAULT | Texture::Usage::GEN_MIPMAPPABLE)
|
||||
.build(*engine);
|
||||
Texture::PixelBufferDescriptor buffer(data, size_t(w * h * 3),
|
||||
Texture::Format::RGB, Texture::Type::UBYTE,
|
||||
|
||||
Reference in New Issue
Block a user