From 7b09fc43b052fefa904c43b9ed02e636e1aa8954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 7 Nov 2022 23:04:45 +0100 Subject: [PATCH] Warning fix in VR code --- Common/VR/VRBase.h | 2 +- Common/VR/VRFramebuffer.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Common/VR/VRBase.h b/Common/VR/VRBase.h index 114a063a30..10c2648a2f 100644 --- a/Common/VR/VRBase.h +++ b/Common/VR/VRBase.h @@ -18,7 +18,7 @@ #if defined(_DEBUG) && (defined(XR_USE_GRAPHICS_API_OPENGL) || defined(XR_USE_GRAPHICS_API_OPENGL_ES)) -void GLCheckErrors(char* file, int line); +void GLCheckErrors(const char* file, int line); #define GL(func) func; GLCheckErrors(__FILE__ , __LINE__); #else diff --git a/Common/VR/VRFramebuffer.cpp b/Common/VR/VRFramebuffer.cpp index b6583052ad..c8bc44a972 100644 --- a/Common/VR/VRFramebuffer.cpp +++ b/Common/VR/VRFramebuffer.cpp @@ -71,7 +71,7 @@ static const char* GlErrorString(GLenum error) { } } -void GLCheckErrors(char* file, int line) { +void GLCheckErrors(const char* file, int line) { for (int i = 0; i < 10; i++) { const GLenum error = glGetError(); if (error == GL_NO_ERROR) { @@ -86,7 +86,6 @@ void GLCheckErrors(char* file, int line) { #if XR_USE_GRAPHICS_API_OPENGL_ES static bool ovrFramebuffer_CreateGLES(XrSession session, ovrFramebuffer* frameBuffer, int width, int height, bool multiview) { - frameBuffer->Width = width; frameBuffer->Height = height;