@@ -121,8 +121,8 @@ void GpuIspShaderPassBlcNormalise::setShaderVariableValues(eGLImage &eglImageIn,
GLfloat firstRed[] = { firstRed_x_, firstRed_y_ };
GLfloat imgSize[] = { (GLfloat)passInputCfg_.size.width,
(GLfloat)passInputCfg_.size.height };
- GLfloat Step[] = { static_cast<float>(bytesPerPixel_) / (passInputCfg_.stride - 1),
- 1.0f / (passInputCfg_.size.height - 1) };
+ GLfloat Step[] = { static_cast<float>(bytesPerPixel_) / (passInputCfg_.stride),
+ 1.0f / (passInputCfg_.size.height) };
GLfloat Stride = (GLfloat)passInputCfg_.size.width / (shaderStridePixels_ / bytesPerPixel_);
/*
* Scale input to output size, keeping the aspect ratio and preferring