From dd5bcc9b562f5a257fa8eaddb1280d3b61cd1fae Mon Sep 17 00:00:00 2001 From: Daid Date: Tue, 15 Mar 2022 10:16:27 +0000 Subject: [PATCH] Differently check if we have frame buffer support, so it might work on GLES2 --- src/graphics/renderTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/renderTexture.cpp b/src/graphics/renderTexture.cpp index d801e56c..9144ed35 100644 --- a/src/graphics/renderTexture.cpp +++ b/src/graphics/renderTexture.cpp @@ -21,7 +21,7 @@ RenderTexture::~RenderTexture() bool RenderTexture::create() { - if (!GLAD_GL_ARB_framebuffer_object) + if (!glad_glGenFramebuffers) return false; if (!frame_buffer) {