From 8a043691b23bdc763e26c6c74463e62497482f56 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Tue, 9 Aug 2016 23:20:54 +0200 Subject: [PATCH] fix cast from void* to Gluint gcc complained OsvrRenderingPlugin.cpp:788:44: error: cast from 'void*' to 'GLuint {aka unsigned int}' loses precision [-fpermissive] --- OsvrRenderingPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsvrRenderingPlugin.cpp b/OsvrRenderingPlugin.cpp index 0f1c2cd..7d1b18e 100644 --- a/OsvrRenderingPlugin.cpp +++ b/OsvrRenderingPlugin.cpp @@ -785,8 +785,8 @@ inline void RenderViewOpenGL( glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_WIDTH, &texWidth); glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_HEIGHT, &texHeight); - GLuint glTex = eyeIndex == 0 ? (GLuint)s_leftEyeTexturePtr - : (GLuint)s_rightEyeTexturePtr; + GLuint glTex = eyeIndex == 0 ? *(GLuint *)s_leftEyeTexturePtr + : *(GLuint *)s_rightEyeTexturePtr; // unsigned char* data = new unsigned char[texWidth*texHeight * 4]; // FillTextureFromCode(texWidth, texHeight, texHeight * 4, data);