[renderer] Fix more plugin linking errors

This commit is contained in:
Bill Currie 2022-03-17 11:21:38 +09:00
parent 1458f61a48
commit 0e58f96d37
2 changed files with 24 additions and 24 deletions

View file

@ -231,23 +231,24 @@ gl_begin_frame (void)
// draw any areas not covered by the refresh
if (r_refdef.vrect.x > 0) {
// left
Draw_TileClear (0, 0, r_refdef.vrect.x, vid.height - vr_data.lineadj);
gl_Draw_TileClear (0, 0, r_refdef.vrect.x,
vid.height - vr_data.lineadj);
// right
Draw_TileClear (r_refdef.vrect.x + r_refdef.vrect.width, 0,
vid.width - r_refdef.vrect.x + r_refdef.vrect.width,
vid.height - vr_data.lineadj);
gl_Draw_TileClear (r_refdef.vrect.x + r_refdef.vrect.width, 0,
vid.width - r_refdef.vrect.x + r_refdef.vrect.width,
vid.height - vr_data.lineadj);
}
if (r_refdef.vrect.y > 0) {
// top
Draw_TileClear (r_refdef.vrect.x, 0,
r_refdef.vrect.x + r_refdef.vrect.width,
r_refdef.vrect.y);
gl_Draw_TileClear (r_refdef.vrect.x, 0,
r_refdef.vrect.x + r_refdef.vrect.width,
r_refdef.vrect.y);
// bottom
Draw_TileClear (r_refdef.vrect.x,
r_refdef.vrect.y + r_refdef.vrect.height,
r_refdef.vrect.width,
vid.height - vr_data.lineadj -
(r_refdef.vrect.height + r_refdef.vrect.y));
gl_Draw_TileClear (r_refdef.vrect.x,
r_refdef.vrect.y + r_refdef.vrect.height,
r_refdef.vrect.width,
vid.height - vr_data.lineadj -
(r_refdef.vrect.height + r_refdef.vrect.y));
}
gl_Fog_SetupFrame ();

View file

@ -193,24 +193,23 @@ glsl_begin_frame (void)
GLSL_DrawReset ();
if (r_refdef.vrect.x > 0) {
int rx = r_refdef.vrect.x + r_refdef.vrect.width;
int vh = vid.height - vr_data.lineadj;
// left
Draw_TileClear (0, 0, r_refdef.vrect.x, vid.height - vr_data.lineadj);
glsl_Draw_TileClear (0, 0, r_refdef.vrect.x, vh);
// right
Draw_TileClear (r_refdef.vrect.x + r_refdef.vrect.width, 0,
vid.width - r_refdef.vrect.x + r_refdef.vrect.width,
vid.height - vr_data.lineadj);
glsl_Draw_TileClear (rx, 0, vid.width - rx, vh);
}
if (r_refdef.vrect.y > 0) {
int lx = r_refdef.vrect.x;
int ty = r_refdef.vrect.y;
int rx = r_refdef.vrect.x + r_refdef.vrect.width;
int by = r_refdef.vrect.y + r_refdef.vrect.height;
int vh = vid.height - vr_data.lineadj;
// top
Draw_TileClear (r_refdef.vrect.x, 0,
r_refdef.vrect.x + r_refdef.vrect.width,
r_refdef.vrect.y);
glsl_Draw_TileClear (lx, 0, rx, ty);
// bottom
Draw_TileClear (r_refdef.vrect.x,
r_refdef.vrect.y + r_refdef.vrect.height,
r_refdef.vrect.width,
vid.height - vr_data.lineadj -
(r_refdef.vrect.height + r_refdef.vrect.y));
glsl_Draw_TileClear (lx, by, r_refdef.vrect.width, vh - by);
}
}