From 1636ee8b2c1c2e0415932cc1621cc523cac938b4 Mon Sep 17 00:00:00 2001 From: MiniTurtle Date: Fri, 22 Mar 2024 17:25:53 +0200 Subject: [PATCH] fix min on mac --- source/Irrlicht/COpenGLDriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Irrlicht/COpenGLDriver.cpp b/source/Irrlicht/COpenGLDriver.cpp index d3f0254f4..4b8ac337f 100644 --- a/source/Irrlicht/COpenGLDriver.cpp +++ b/source/Irrlicht/COpenGLDriver.cpp @@ -494,7 +494,7 @@ bool COpenGLDriver::resizeIndexHardwareBufferSubData(SHWBufferLink* _HWBuffer, u // // Copy data from old buffer to new buffer - GLsizeiptrARB copySize = min(size, HWBuffer->vbo_indicesSize); + GLsizeiptrARB copySize = std::min((GLuint)size, HWBuffer->vbo_indicesSize); extGlBindBuffer(GL_COPY_READ_BUFFER, prev_vbo_indicesID); extGlBindBuffer(GL_COPY_WRITE_BUFFER, HWBuffer->vbo_indicesID); @@ -549,7 +549,7 @@ bool COpenGLDriver::resizeVertexHardwareBufferSubData(SHWBufferLink* _HWBuffer, // // Copy data from old buffer to new buffer - GLsizeiptrARB copySize = min(size, HWBuffer->vbo_verticesSize); + GLsizeiptrARB copySize = std::min((GLuint)size, HWBuffer->vbo_verticesSize); extGlBindBuffer(GL_COPY_READ_BUFFER, prev_vbo_vertexID); extGlBindBuffer(GL_COPY_WRITE_BUFFER, HWBuffer->vbo_verticesID);