From 8a66959df9486aabc39ac9cd118cc6e32443116f Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 10 Jan 2024 04:34:42 +0100 Subject: [PATCH] #270 make sure framebuffer is initialized with surface_tex --- src/render_ogl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render_ogl.c b/src/render_ogl.c index 141073b..f666eb5 100644 --- a/src/render_ogl.c +++ b/src/render_ogl.c @@ -583,7 +583,7 @@ static void ogl_init_scale_program() 0, GL_RGBA, GL_UNSIGNED_BYTE, - 0); + g_ogl.surface_tex); glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, g_ogl.frame_buffer_tex_id, 0);