From 4f54fd28a0d3d27ef67a1ea18971cce8c239fb77 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 27 Sep 2013 23:04:19 +0200 Subject: [PATCH] (PS3) Forcibly disable float FBO textures for now - was creating all sorts of crashes --- gfx/gl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gfx/gl.c b/gfx/gl.c index e9975a7589..d409a8ce6e 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -455,6 +455,13 @@ static void gl_compute_fbo_geometry(void *data, unsigned width, unsigned height, } } +#ifdef __CELLOS_LV2__ +// TODO: Add float FBO support to PSGL +#define FP_FBO_ENABLE_DEFAULT (false) +#else +#define FP_FBO_ENABLE_DEFAULT (gl->fbo_scale[i].valid && gl->fbo_scale[i].fp_fbo) +#endif + static void gl_create_fbo_textures(void *data) { gl_t *gl = (gl_t*)data; @@ -479,7 +486,7 @@ static void gl_create_fbo_textures(void *data) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrap_enum); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrap_enum); - bool fp_fbo = gl->fbo_scale[i].valid && gl->fbo_scale[i].fp_fbo; + bool fp_fbo = FP_FBO_ENABLE_DEFAULT; if (fp_fbo) {