mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2024-11-10 06:31:48 +00:00
Fix use of temporary vector in utils/vrad/vraddetailprops.cpp.
This fixes a gcc compile error.
This commit is contained in:
parent
324b4f93dc
commit
c5fb3851bb
2 changed files with 4 additions and 2 deletions
|
@ -524,7 +524,8 @@ private:
|
||||||
bool TestPointAgainstSkySurface( Vector const &pt, dface_t *pFace )
|
bool TestPointAgainstSkySurface( Vector const &pt, dface_t *pFace )
|
||||||
{
|
{
|
||||||
// Create sky face winding.
|
// Create sky face winding.
|
||||||
winding_t *pWinding = WindingFromFace( pFace, Vector( 0.0f, 0.0f, 0.0f ) );
|
Vector v( 0.0f, 0.0f, 0.0f );
|
||||||
|
winding_t *pWinding = WindingFromFace( pFace, v );
|
||||||
|
|
||||||
// Test point in winding. (Since it is at the node, it is in the plane.)
|
// Test point in winding. (Since it is at the node, it is in the plane.)
|
||||||
bool bRet = PointInWinding( pt, pWinding );
|
bool bRet = PointInWinding( pt, pWinding );
|
||||||
|
|
|
@ -524,7 +524,8 @@ private:
|
||||||
bool TestPointAgainstSkySurface( Vector const &pt, dface_t *pFace )
|
bool TestPointAgainstSkySurface( Vector const &pt, dface_t *pFace )
|
||||||
{
|
{
|
||||||
// Create sky face winding.
|
// Create sky face winding.
|
||||||
winding_t *pWinding = WindingFromFace( pFace, Vector( 0.0f, 0.0f, 0.0f ) );
|
Vector v( 0.0f, 0.0f, 0.0f );
|
||||||
|
winding_t *pWinding = WindingFromFace( pFace, v );
|
||||||
|
|
||||||
// Test point in winding. (Since it is at the node, it is in the plane.)
|
// Test point in winding. (Since it is at the node, it is in the plane.)
|
||||||
bool bRet = PointInWinding( pt, pWinding );
|
bool bRet = PointInWinding( pt, pWinding );
|
||||||
|
|
Loading…
Reference in a new issue