mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
GameUI: avoid const modifier loss
This commit is contained in:
parent
b1db062fbc
commit
b60b3f7d18
@ -715,15 +715,19 @@ for drawing playermodel previews
|
|||||||
*/
|
*/
|
||||||
static void pfnRenderScene( const ref_viewpass_t *rvp )
|
static void pfnRenderScene( const ref_viewpass_t *rvp )
|
||||||
{
|
{
|
||||||
|
ref_viewpass_t copy;
|
||||||
|
|
||||||
// to avoid division by zero
|
// to avoid division by zero
|
||||||
if( !rvp || rvp->fov_x <= 0.0f || rvp->fov_y <= 0.0f )
|
if( !rvp || rvp->fov_x <= 0.0f || rvp->fov_y <= 0.0f )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
copy = *rvp;
|
||||||
|
|
||||||
// don't allow special modes from menu
|
// don't allow special modes from menu
|
||||||
((ref_viewpass_t *)&rvp)->flags = 0;
|
copy.flags = 0;
|
||||||
|
|
||||||
R_Set2DMode( false );
|
R_Set2DMode( false );
|
||||||
R_RenderFrame( rvp );
|
R_RenderFrame( © );
|
||||||
R_Set2DMode( true );
|
R_Set2DMode( true );
|
||||||
R_PopScene();
|
R_PopScene();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user