Skip to main content
Participant
June 22, 2015

wglDXRegisterObjectNV failed

Hello,

what could be wrong with this sequence?

ovrHmd_CreateDebug
start my renderer (create opengl context)
ovrHmd_CreateSwapTextureSetGL 2x
ovrHmd_CreateMirrorTextureGL
rendering without problems...
ovrHmd_DestroyMirrorTexture
ovrHmd_DestroySwapTextureSet 2x
close my renderer (delete opengl context)
start my renderer (create new opengl context in the same window)
ovrHmd_CreateSwapTextureSetGL <--------- fails with

OVR Error:\n OVRTime: 264260.753780\n Time: 2015-06-22 20:49:14 [606:129:800]\n Code: -3000 -- ovrError_Initialize\n Description: wglDXRegisterObjectNV failed

and then Access violation reading location 0x00000000 still inside ovrHmd_CreateSwapTextureSetGL.

    4 replies

    deeAuthor
    Participant
    June 22, 2015
    Simplified sequence:

    ovrHmd_CreateDebug
    start my renderer (create opengl context)
    ovrHmd_CreateSwapTextureSetGL 2x
    rendering without problems...
    ovrHmd_DestroySwapTextureSet 2x
    close my renderer (delete opengl context)
    start my renderer (create new opengl context in the same window)
    ovrHmd_CreateSwapTextureSetGL <--------- fails

    Tested with SDK 0.6.0.0 beta and win7 x64
    Inspiring
    June 22, 2015
    Last time I checked it, ovrHmd_CreateDebug wasn't working.

    Do you not have a headset to test with?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    deeAuthor
    Participant
    June 23, 2015
    I usually work with headset disconnected, but I just connected it and it fails even with ovrHmd_Create().
    deeAuthor
    Participant
    June 23, 2015
    It works with inserted code in bold:

    ovrHmd_Create
    start my renderer (create opengl context)
    ovrHmd_CreateSwapTextureSetGL 2x
    rendering without problems...
    ovrHmd_DestroySwapTextureSet 2x
    close my renderer (delete opengl context)
    ovrHmd_Destroy
    ovrHmd_Create

    start my renderer (create new opengl context in the same window)
    ovrHmd_CreateSwapTextureSetGL <--------- works

    But it's slower and if ovrHmd_Create fails and I call ovrHmd_CreateDebug instead, it always fails on second ovrHmd_CreateDebug.