1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Merge pull request #9231 from dumitru-stama/constimg

Fixed a bug in get_pixel not being const
This commit is contained in:
George Marques
2017-06-16 22:09:26 -03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1712,7 +1712,7 @@ void Image::unlock() {
write_lock = PoolVector<uint8_t>::Write();
}
Color Image::get_pixel(int p_x, int p_y) {
Color Image::get_pixel(int p_x, int p_y) const {
uint8_t *ptr = write_lock.ptr();
#ifdef DEBUG_ENABLED