@Deprecated
    @Override
    public void modifyTexture(Texture tex, Image pixels, int x, int y) {
        final int textureUnitIndex = 0;
        try {
            setTexture(textureUnitIndex, tex);
        } catch (TextureUnitException exception) {
            throw new RuntimeException("Renderer lacks texture units?");
        }

        if(caps.contains(Caps.OpenGLES20) && pixels.getFormat()!=tex.getImage().getFormat()) {
            logger.log(Level.WARNING, "Incompatible texture subimage");
        }
        int target = convertTextureType(tex.getType(), pixels.getMultiSamples(), -1);
        texUtil.uploadSubTexture(target, pixels, 0, x, y,
                0, 0, pixels.getWidth(), pixels.getHeight(), linearizeSrgbImages);
    }
@deprecated Use modifyTexture(Texture2D dest, Image src, int destX, int destY, int srcX, int srcY, int areaW, int areaH)
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java