Skip to content

Commit b91fc21

Browse files
committed
ReviveOverlay: Fix pointer size warnings.
1 parent bfa12b8 commit b91fc21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReviveOverlay/openvroverlaycontroller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ void COpenVROverlayController::OnSceneChanged()
241241
QOpenGLFramebufferObject::bindDefault();
242242

243243
m_pOpenGLContext->functions()->glFlush();
244-
GLuint unTexture = m_pFbo->texture();
244+
uintptr_t unTexture = m_pFbo->texture();
245245
if( vr::VROverlay() && unTexture != 0 )
246246
{
247247
vr::Texture_t texture = {(void*)unTexture, vr::TextureType_OpenGL, vr::ColorSpace_Auto };
@@ -544,7 +544,7 @@ vr::HmdError COpenVROverlayController::GetLastHmdError()
544544
//-----------------------------------------------------------------------------
545545
void COpenVROverlayController::UpdateThumbnail()
546546
{
547-
GLuint unThumbnail = m_pThumbnailTexture->textureId();
547+
uintptr_t unThumbnail = m_pThumbnailTexture->textureId();
548548
if( vr::VROverlay() && unThumbnail != 0 )
549549
{
550550
vr::Texture_t thumbnail = {(void*)unThumbnail, vr::TextureType_OpenGL, vr::ColorSpace_Auto };

0 commit comments

Comments
 (0)