MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetMirrorTextureBufferGL

Function ovr_GetMirrorTextureBufferGL

Revive/REV_CAPI_GL.cpp:83–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetMirrorTextureBufferGL(ovrSession session,
84 ovrMirrorTexture mirrorTexture,
85 unsigned int* out_TexId)
86{
87 REV_TRACE(ovr_GetMirrorTextureBufferGL);
88
89 if (!session)
90 return ovrError_InvalidSession;
91
92 if (!mirrorTexture || !out_TexId)
93 return ovrError_InvalidParameter;
94
95 TextureGL* texture = dynamic_cast<TextureGL*>(mirrorTexture->Texture.get());
96 if (!texture)
97 return ovrError_InvalidParameter;
98
99 *out_TexId = texture->Texture;
100 return ovrSuccess;
101}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected