| 81 | } |
| 82 | |
| 83 | OVR_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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected