diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index f3ddc7b0f3..b60e707aef 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -359,8 +359,8 @@ static void gl_compute_fbo_geometry(gl_t *gl, unsigned width, unsigned height, /* Calculate viewports for FBOs. */ for (i = 0; i < gl->fbo_pass; i++) { - struct gl_fbo_rect *fbo_rect = &gl->fbo_rect[i]; - struct gfx_fbo_scale *fbo_scale = &gl->fbo_scale[i]; + struct gfx_fbo_rect *fbo_rect = &gl->fbo_rect[i]; + struct gfx_fbo_scale *fbo_scale = &gl->fbo_scale[i]; switch (gl->fbo_scale[i].type_x) { @@ -930,7 +930,7 @@ static void gl_check_fbo_dimensions(gl_t *gl) GLenum status; unsigned img_width, img_height, max, pow2_size; bool check_dimensions = false; - struct gl_fbo_rect *fbo_rect = &gl->fbo_rect[i]; + struct gfx_fbo_rect *fbo_rect = &gl->fbo_rect[i]; if (!fbo_rect) continue; @@ -978,8 +978,8 @@ static void gl_frame_fbo(gl_t *gl, uint64_t frame_count, const struct gl_tex_info *tex_info) { unsigned width, height; - const struct gl_fbo_rect *prev_rect; - const struct gl_fbo_rect *rect; + const struct gfx_fbo_rect *prev_rect; + const struct gfx_fbo_rect *rect; struct gl_tex_info *fbo_info; struct gl_tex_info fbo_tex_info[GFX_MAX_SHADERS]; int i; diff --git a/gfx/drivers/gl_common.h b/gfx/drivers/gl_common.h index 7c35e2868c..b60e19addd 100644 --- a/gfx/drivers/gl_common.h +++ b/gfx/drivers/gl_common.h @@ -178,7 +178,7 @@ #endif -struct gl_fbo_rect +struct gfx_fbo_rect { unsigned img_width; unsigned img_height; @@ -262,7 +262,7 @@ typedef struct gl /* Render-to-texture, multipass shaders. */ GLuint fbo[GFX_MAX_SHADERS]; GLuint fbo_texture[GFX_MAX_SHADERS]; - struct gl_fbo_rect fbo_rect[GFX_MAX_SHADERS]; + struct gfx_fbo_rect fbo_rect[GFX_MAX_SHADERS]; struct gfx_fbo_scale fbo_scale[GFX_MAX_SHADERS]; int fbo_pass; bool fbo_inited;