OpenGL 仅支持默认图形适配器

OpenGL supports only the default graphics adapter

出于某种原因,我不能再运行 OculusRoomTiny 示例程序了,因为我一直弹出这个 "OpenGL supports only the default graphics adapter."

它是由下面 main.cpp 中显示的代码触发的:

 if (Compare(luid, GetDefaultAdapterLuid())) // If luid that the Rift is on is not the default adapter LUID...
    {
        VALIDATE(false, "OpenGL supports only the default graphics adapter.");
    }

static ovrGraphicsLuid GetDefaultAdapterLuid()
{
    ovrGraphicsLuid luid = ovrGraphicsLuid();

    #if defined(_WIN32)
        IDXGIFactory* factory = nullptr;

        if (SUCCEEDED(CreateDXGIFactory(IID_PPV_ARGS(&factory))))
        {
            IDXGIAdapter* adapter = nullptr;

            if (SUCCEEDED(factory->EnumAdapters(0, &adapter)))
            {
                DXGI_ADAPTER_DESC desc;

                adapter->GetDesc(&desc);
                memcpy(&luid, &desc.AdapterLuid, sizeof(luid));
                adapter->Release();
            }

            factory->Release();
        }
    #endif

    return luid;
}

我以前从未遇到过这个问题,没有更改任何代码,重新安装了 SDK,但我仍然遇到同样的问题 - 我的耳机出了什么问题 - 为什么 luid 不一样?我使用的是 DK2 和 SDK 1.9.0

当我注释掉 VALIDATE 语句时,程序 运行s,但 oculus 永远卡在 "please wait" 屏幕中。

提前感谢您的帮助!

我遇到了同样的问题。 我注意到该应用程序正在尝试使用我的板载 Intel 显卡。 我通过更改 windows 中的 NVidia 驱动程序使其成为默认显卡解决了这个问题。

希望对您有所帮助。