From 417c9cf092f649629cf81e0610a702047cc13d5c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 13:02:50 +1100 Subject: [PATCH] [client] opengl: act on glBufferSubData failure --- client/renderers/OpenGL/opengl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/renderers/OpenGL/opengl.c b/client/renderers/OpenGL/opengl.c index ba9c10b7..5ced5c24 100644 --- a/client/renderers/OpenGL/opengl.c +++ b/client/renderers/OpenGL/opengl.c @@ -1146,7 +1146,9 @@ static bool opengl_bufferFn(void * opaque, const void * data, size_t size) size, data ); - check_gl_error("glBufferSubData"); + + if (check_gl_error("glBufferSubData")) + return false; this->texPos += size; return true;