Skip to content

Commit

Permalink
Fix If the width of the image is not a multiple of 4, the rendering r…
Browse files Browse the repository at this point in the history
…esult by image_view will be skewed. (#8166)
  • Loading branch information
seker committed Dec 17, 2024
1 parent 6a54763 commit fc63c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/image_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static void loadImage(App& app, Engine* engine, const Path& filename) {
.height(h)
.levels(0xff)
.format(channels == 3 ?
Texture::InternalFormat::RGB16F : Texture::InternalFormat::RGBA16F)
Texture::InternalFormat::RGB16F : Texture::InternalFormat::RGBA32F)
.sampler(Texture::Sampler::SAMPLER_2D)
.build(*engine);

Expand Down

0 comments on commit fc63c48

Please sign in to comment.