|
|
@ -262,7 +262,7 @@ void ImGui_ImplDX12_RenderDrawData(ImDrawData* draw_data, ID3D12GraphicsCommandL
|
|
|
|
// Project scissor/clipping rectangles into framebuffer space
|
|
|
|
// Project scissor/clipping rectangles into framebuffer space
|
|
|
|
ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y);
|
|
|
|
ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y);
|
|
|
|
ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y);
|
|
|
|
ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y);
|
|
|
|
if (clip_max.x < clip_min.x || clip_max.y < clip_min.y)
|
|
|
|
if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y)
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
// Apply Scissor/clipping rectangle, Bind texture, Draw
|
|
|
|
// Apply Scissor/clipping rectangle, Bind texture, Draw
|
|
|
|