int opt = TBM_OPTION_READ|TBM_OPTION_WRITE;
char imgFile[100] = {0,};
- DRI2Buffer* pDri2_buffers = DRI2GetBuffers (pDisplay, pixmap, &dri2_width, &dri2_height, attachments, dri2_count, &dri2_out_count);
- SysTryReturnVoidResult(NID_SHELL, pDri2_buffers != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
- SysTryReturnVoidResult(NID_SHELL, pDri2_buffers->name != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
-
tbm_bo bo = null;
tbm_bo_handle bo_handle;
bo_handle.ptr = null;
+ DRI2Buffer* pDri2_buffers = DRI2GetBuffers (pDisplay, pixmap, &dri2_width, &dri2_height, attachments, dri2_count, &dri2_out_count);
+ SysTryReturnVoidResult(NID_SHELL, pDri2_buffers != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryLogCatch(NID_UI_CTRL, pDri2_buffers->name != null, , "[E_OUT_OF_MEMORY] Memory is insufficient.");
+
bo = tbm_bo_import(bufmgr, pDri2_buffers->name);
SysTryLogCatch(NID_UI_CTRL, bo != null, , "Failed to import bo (key : %d).", pDri2_buffers->name);