Breaking changes for most users!
Added an extra 'void* renderer_user_data' parameter to ImDrawCallback (stored in ImDrawCmd::UserCallback). This allows custom rendering back-ends to pass custom local rendering information to the callback.
IF YOU USE AN OLD RENDERER BACK-END OR COPIED A RENDERER BACK-END BEFORE 1.71, YOUR COMPILATION WILL FAIL ON THIS LINE:
     pcmd->UserCallback(cmd_list, pcmd);
You can fix it by adding a trailing NULL parameter:
     pcmd->UserCallback(cmd_list, pcmd, NULL);
If your back-end needs to support multiple versions, you can use a '#if (IMGUI_VERSION_NUM >= 17004)' test.
13 files changed