mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 10:50:58 +00:00
[sw] Use a smaller size for the fish eye cube map
This speeds up sw rendering of the fish eye effect.
This commit is contained in:
parent
ab78e9d2ff
commit
9241efaf1e
1 changed files with 3 additions and 2 deletions
|
@ -982,11 +982,12 @@ renderside (byte *bufs, int side)
|
|||
r_refdef.fov_x = r_refdef.fov_y = 90;
|
||||
r_refdef.vrect.x = r_refdef.vrect.y = 0;
|
||||
r_refdef.vrect.height = r_refdef.vrect.width = sw_cube_map_size;
|
||||
vid.height = vid.width = sw_cube_map_size;
|
||||
vid.rowbytes = vid.height = vid.width = sw_cube_map_size;
|
||||
R_ViewChanged ();
|
||||
|
||||
rendercopy (bufs);
|
||||
|
||||
vid.rowbytes = width;
|
||||
r_refdef.vrect = rect;
|
||||
vid.height = height;
|
||||
vid.width = width;
|
||||
|
@ -1012,7 +1013,7 @@ renderlookup (byte **offs, byte* bufs)
|
|||
static void
|
||||
R_RenderViewFishEye (void)
|
||||
{
|
||||
sw_cube_map_size = vid.width;
|
||||
sw_cube_map_size = vid.height;
|
||||
int width = vid.width; //r_refdef.vrect.width;
|
||||
int height = vid.height; //r_refdef.vrect.height;
|
||||
int scrsize = sw_cube_map_size * sw_cube_map_size;
|
||||
|
|
Loading…
Reference in a new issue