mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(Lakka) Make effects depending on FBO optional and disabled for now
This commit is contained in:
parent
dead11f182
commit
66cf8bd820
@ -548,7 +548,7 @@ static void lakka_draw_categories(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_FBO
|
#if defined(HAVE_FBO) && defined(LAKKA_EFFECTS)
|
||||||
|
|
||||||
static void lakka_check_fb_status(void)
|
static void lakka_check_fb_status(void)
|
||||||
{
|
{
|
||||||
@ -658,7 +658,7 @@ static void lakka_frame(void)
|
|||||||
|
|
||||||
update_tweens(0.002);
|
update_tweens(0.002);
|
||||||
|
|
||||||
#ifdef HAVE_FBO
|
#if defined(HAVE_FBO) && defined(LAKKA_EFFECTS)
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
|
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
|
||||||
glClearColor(0.0, 0.0, 0.0, 0.0);
|
glClearColor(0.0, 0.0, 0.0, 0.0);
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
@ -714,7 +714,7 @@ static void lakka_context_destroy(void *data)
|
|||||||
int i, j, k;
|
int i, j, k;
|
||||||
(void)data;
|
(void)data;
|
||||||
|
|
||||||
#ifdef HAVE_FBO
|
#if defined(HAVE_FBO) && defined(LAKKA_EFFECTS)
|
||||||
glDeleteFramebuffers(1, &fbo);
|
glDeleteFramebuffers(1, &fbo);
|
||||||
glDeleteTextures(1, &fbocolor);
|
glDeleteTextures(1, &fbocolor);
|
||||||
glDeleteTextures(1, &fbodepth);
|
glDeleteTextures(1, &fbodepth);
|
||||||
@ -880,7 +880,7 @@ static void lakka_context_reset(void *data)
|
|||||||
if (!menu)
|
if (!menu)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef HAVE_FBO
|
#if defined(HAVE_FBO) && defined(LAKKA_EFFECTS)
|
||||||
lakka_fbo_reset();
|
lakka_fbo_reset();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user