Skip to content

Commit

Permalink
[3.0] Fix bug in Image::_get_pixelb
Browse files Browse the repository at this point in the history
Fixes issue:
 godotengine#8158
  • Loading branch information
iam13islucky authored and amugana committed Jun 28, 2017
1 parent cadcdca commit c05f6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void Image::_get_pixelb(int p_x, int p_y, uint32_t p_pixelsize, const uint8_t *p
uint32_t ofs = (p_y * width + p_x) * p_pixelsize;

for (uint32_t i = 0; i < p_pixelsize; i++) {
p_dst[ofs] = p_src[ofs + i];
p_dst[i] = p_src[ofs + i];
}
}

Expand Down

0 comments on commit c05f6e0

Please sign in to comment.