用RenderTexture做橡皮擦效果,glreadPixels 取出的数据不对

用RenderTexture做橡皮擦效果,被擦过的区域已经显示为透明,
glreadPixels 取出的数据
在 html5中 显示是透明的
在ios 一直 是 之前初始化进去的颜色
这个怎么解决啊

帮顶,我也想知道renderTexture是否能设置背景色为透明色

jsb的换了种方式取

//通过画布拿到这张画布上每个像素点的信息,封装到CCImage中
CCImage* pImage = this->m_pRenderTexture->newCCImage();
//获取像素数据
unsigned char* data_ = pImage->getData();
unsigned int *pixel = (unsigned int *)data_;
pixel = pixel + (y * (int)pTempSpr->getContentSize().width) * 1 + x * 1;
//R通道
color4B.r = *pixel & 0xff;
//G通道
color4B.g = (*pixel >> 8) & 0xff;
//B通过
color4B.b = (*pixel >> 16) & 0xff;
//Alpha通道,我们有用的就是Alpha
color4B.a = (*pixel >> 24) & 0xff;

CCLOG("当前点击的点的: alpha = %d", color4B.a);