Skip to content

Commit

Permalink
Merge branch 'module_rbt' of github.com:SamFlt/visp into module_rbt
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Nov 13, 2024
2 parents ef3380f + ca6638c commit a9caed8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modules/ar/src/panda3d-simulator/vpPanda3DRGBRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,7 @@ void vpPanda3DRGBRenderer::setBackgroundImage(const vpImage<vpRGBa> &background)
for (unsigned int i = 0; i < background.getHeight(); ++i) {
const vpRGBa *srcRow = background[background.getHeight() - (i + 1)];
unsigned char *destRow = data + i * background.getWidth() * 4;
for (unsigned int j = 0; j < background.getWidth(); ++j) {
destRow[j * 4] = srcRow[j].B;
destRow[j * 4 + 1] = srcRow[j].G;
destRow[j * 4 + 2] = srcRow[j].R;
destRow[j * 4 + 3] = srcRow[j].A;
}
memcpy(destRow, srcRow, background.getWidth() * 4);
}
}

Expand Down

0 comments on commit a9caed8

Please sign in to comment.