Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
dee's avatar
dee
Honored Guest
11 years ago

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

  • dee's avatar
    dee
    Honored Guest
    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
  • Last time I checked it, ovrHmd_CreateDebug wasn't working.

    Do you not have a headset to test with?
  • dee's avatar
    dee
    Honored Guest
    I usually work with headset disconnected, but I just connected it and it fails even with ovrHmd_Create().
  • dee's avatar
    dee
    Honored Guest
    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.