Browse Source

Improved performance of ImageData:getPixel and ImageData:mapPixel

Alex Szpakowski 12 years ago
parent
commit
9abfb9e23b
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/modules/image/ImageData.cpp

+ 0 - 2
src/modules/image/ImageData.cpp

@@ -80,8 +80,6 @@ pixel ImageData::getPixel(int x, int y)
 	if (!inside(x, y))
 		throw love::Exception("Attempt to get out-of-range pixel!");
 
-	Lock lock(mutex);
-
 	pixel *pixels = (pixel *)getData();
 	return pixels[y*getWidth()+x];
 }