Warning fix in VR code

This commit is contained in:
Henrik Rydgård committed 2022-11-08 00:21:07 +01:00
1 parent 7beff4da96
commit 7b09fc43b0
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -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;