* Put rangeCheck() back

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9743 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent 105d27fddf
commit f7a653088f
  1. 4
      engine/src/core/com/jme3/texture/image/DefaultImageRaster.java

@ -36,7 +36,7 @@ public class DefaultImageRaster extends ImageRaster {
@Override
public void setPixel(int x, int y, ColorRGBA color) {
// rangeCheck(x, y);
rangeCheck(x, y);
// Check flags for grayscale
if (codec.isGray) {
@ -71,7 +71,7 @@ public class DefaultImageRaster extends ImageRaster {
@Override
public ColorRGBA getPixel(int x, int y, ColorRGBA store) {
// rangeCheck(x, y);
rangeCheck(x, y);
codec.readComponents(buffer, x, y, width, components, temp);
if (store == null) {

Loading…
Cancel
Save