Press Windows + R to open the Run dialog, type gpedit.msc, and press Enter.
Navigate to the following policy settings related to RDP:
Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment
Find the setting: Use hardware graphics adapters for all Remote Desktop Services sessions.
Enable this policy (set to Enabled).