From cf5c0ca5f7b79dfc24ae61dbe72b5c427eef5d11 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 19 Aug 2024 21:54:15 +0200 Subject: [PATCH] forgor return --- src/hardware/r_opengl/r_opengl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index cca1b12b8..3298a04c5 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -771,7 +771,10 @@ void GLFramebuffer_IsFuncAvailible(void) { //this stuff needs atleast OGL 3.0 if (majorGL < 3) + { supportFBO = false; + return; + } if (isExtAvailable("GL_ARB_framebuffer_no_attachments",gl_extensions) && isExtAvailable("GL_ARB_framebuffer_object",gl_extensions) && isExtAvailable("GL_ARB_framebuffer_sRGB",gl_extensions)) supportFBO = true;