VirtualBox

Changeset 85057 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 3, 2020 7:19:05 PM (4 years ago)
Author:
vboxsync
Message:

wddm/dbg/D3DFeatureLevel: compilation fixes

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/Makefile.kmk

    r82968 r85057  
    196196
    197197PROGRAMS += D3DFeatureLevel
    198 D3DFeatureLevel_TEMPLATE = VBOXR3EXE
     198D3DFeatureLevel_TEMPLATE = VBOXR3STATIC
    199199D3DFeatureLevel_SDKS     = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
    200200D3DFeatureLevel_SOURCES  = \
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/D3DFeatureLevel.cpp

    r82968 r85057  
    2727int main(int argc, char *argv[])
    2828{
    29     HRESULT rc;
     29    (void)argc, argv;
     30
    3031    D3D_FEATURE_LEVEL iFeatureLevelMax = static_cast<D3D_FEATURE_LEVEL>(0);
    3132
     
    4041    };
    4142
    42     rc = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, aiFeatureLevels,
     43    HRESULT rc = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, aiFeatureLevels,
    4344        ARRAYSIZE(aiFeatureLevels), D3D11_SDK_VERSION, NULL, &iFeatureLevelMax, NULL);
    4445
    45     printf("Maximum supported feature level: 0x%X, hr=0x%X.\n", iFeatureLevelMax, rc);
     46    printf("Maximum supported feature level: 0x%X, hr=0x%X.\n", iFeatureLevelMax, (unsigned int)rc);
    4647
    4748    return rc;
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