VirtualBox

Changeset 79769 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 14, 2019 5:04:58 PM (5 years ago)
Author:
vboxsync
Message:

Additions/3D/win: D3DKMT: first try to use Windows8+ method to open an adapter. bugref:8893

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/3D/win/VBoxWddmUmHlp/D3DKMT.cpp

    r76553 r79769  
    220220NTSTATUS vboxDispKmtOpenAdapter2(D3DKMT_HANDLE *phAdapter, LUID *pLuid)
    221221{
    222     NTSTATUS Status = vboxDispKmtOpenAdapterFromHdc(phAdapter, pLuid);
     222    NTSTATUS Status = vboxDispKmtOpenAdapterFromLuid(phAdapter, pLuid);
    223223    if (Status != STATUS_SUCCESS)
    224         Status = vboxDispKmtOpenAdapterFromLuid(phAdapter, pLuid);
     224    {
     225        /* Fallback for pre-Windows8 */
     226        Status = vboxDispKmtOpenAdapterFromHdc(phAdapter, pLuid);
     227    }
    225228
    226229    return Status;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette