aboutsummaryrefslogtreecommitdiff
path: root/samples/ppm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'samples/ppm.cc')
-rw-r--r--samples/ppm.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/ppm.cc b/samples/ppm.cc
index 5602118..cf7ec47 100644
--- a/samples/ppm.cc
+++ b/samples/ppm.cc
@@ -52,10 +52,10 @@ std::pair<amber::Result, std::string> ConvertToPPM(
// Write PPM data
for (amber::Value value : values) {
const uint32_t pixel = value.AsUint32();
- // We assume R8G8B8A8_UINT here:
- image.push_back(byte0(pixel)); // R
+ // We assume B8G8R8A8_UNORM here:
+ image.push_back(byte2(pixel)); // R
image.push_back(byte1(pixel)); // G
- image.push_back(byte2(pixel)); // B
+ image.push_back(byte0(pixel)); // B
// PPM does not support alpha channel
}