Skip to content

Commit 964c183

Browse files
committed
Replicating the changes in the hellovr_opengl sample.
1 parent bbaa2f6 commit 964c183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/ofxOpenVR.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ void ofxOpenVR::render()
134134
{
135135
renderStereoTargets();
136136

137-
vr::Texture_t leftEyeTexture = { (void*)leftEyeDesc._nResolveTextureId, vr::TextureType_OpenGL, vr::ColorSpace_Gamma };
137+
vr::Texture_t leftEyeTexture = { (void*)(uintptr_t)leftEyeDesc._nResolveTextureId, vr::TextureType_OpenGL, vr::ColorSpace_Gamma };
138138
vr::VRCompositor()->Submit(vr::Eye_Left, &leftEyeTexture);
139-
vr::Texture_t rightEyeTexture = { (void*)rightEyeDesc._nResolveTextureId, vr::TextureType_OpenGL, vr::ColorSpace_Gamma };
139+
vr::Texture_t rightEyeTexture = { (void*)(uintptr_t)rightEyeDesc._nResolveTextureId, vr::TextureType_OpenGL, vr::ColorSpace_Gamma };
140140
vr::VRCompositor()->Submit(vr::Eye_Right, &rightEyeTexture);
141141
}
142142

0 commit comments

Comments
 (0)