void gl_check_fbo_dimensions(gl_t *gl) { int i; /* Check if we have to recreate our FBO textures. */ for (i = 0; i < gl->fbo_pass; i++) { bool update_feedback = gl->fbo_feedback_enable && (unsigned)i == gl->fbo_feedback_pass; gl_check_fbo_dimension(gl, i, gl->fbo[i], gl->fbo_texture[i], update_feedback); } }
static void gl2_renderchain_check_fbo_dimensions( gl_t *gl, void *chain_data) { int i; gl2_renderchain_t *chain = (gl2_renderchain_t*)chain_data; /* Check if we have to recreate our FBO textures. */ for (i = 0; i < chain->fbo_pass; i++) { struct video_fbo_rect *fbo_rect = &gl->fbo_rect[i]; if (fbo_rect) { bool update_feedback = gl->fbo_feedback_enable && (unsigned)i == gl->fbo_feedback_pass; if ((fbo_rect->max_img_width > fbo_rect->width) || (fbo_rect->max_img_height > fbo_rect->height)) gl_check_fbo_dimension(gl, chain_data, i, update_feedback); } } }