Skip to content

Commit fc396dd

Browse files
committed
client: render: fixed incorrect view origin passing to uniform during bmodels rendering
1 parent 5d39031 commit fc396dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/render/gl_world_new.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,8 +2721,7 @@ void R_SetSurfaceUniforms( word hProgram, msurface_t *surface, bool force )
27212721
u->SetValue( es->texofs[0], es->texofs[1] );
27222722
break;
27232723
case UT_VIEWORIGIN:
2724-
if( pl ) u->SetValue( GetVieworg().x, GetVieworg().y, GetVieworg().z );
2725-
else u->SetValue( tr.modelorg.x, tr.modelorg.y, tr.modelorg.z, e->hCachedMatrix ? 1.0f : 0.0f );
2724+
u->SetValue( GetVieworg().x, GetVieworg().y, GetVieworg().z );
27262725
break;
27272726
case UT_VIEWRIGHT:
27282727
u->SetValue( GetVRight().x, GetVRight().y, GetVRight().z );

0 commit comments

Comments
 (0)