what is wrong when i use Eglimage replace glreadpixels in NDK program?
问题 //step 2. Create the Android Graphic Buffer GraphicBuffer* buffer = new GraphicBuffer(w, h, HAL_PIXEL_FORMAT_RGBA_8888, GraphicBuffer::USAGE_HW_TEXTURE | GraphicBuffer::USAGE_HW_2D | GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN); // Init the buffer status_t err = buffer->initCheck(); if (err != NO_ERROR) { LOGE("Error: %s\n", strerror(-err)); return ; } // Retrieve andorid native buffer android_native_buffer_t* anb = buffer->getNativeBuffer(); //step 3. Create the EGLImage const