joinrgb bugfix reported by marios

metadata
Wenzel Jakob 2010-11-16 11:51:58 +01:00
parent c7c6d32579
commit bed9d8228e
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ void joinRGB(const std::string &s1, const std::string &s2, const std::string &s3
float *outData = outBitmap->getFloatData();
int width = rBitmap->getWidth();
for (int y=0; y<rBitmap->getWidth(); ++y) {
for (int y=0; y<rBitmap->getHeight(); ++y) {
for (int x=0; x<rBitmap->getWidth(); ++x) {
float r = rData[(x + y * width) * 4];
float g = gData[(x + y * width) * 4 + 1];