aboutsummaryrefslogtreecommitdiff
path: root/mp/src/utils/vtf2tga/vtf2tga.cpp
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/utils/vtf2tga/vtf2tga.cpp
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-master.tar.xz
source-sdk-2013-master.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/utils/vtf2tga/vtf2tga.cpp')
-rw-r--r--mp/src/utils/vtf2tga/vtf2tga.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mp/src/utils/vtf2tga/vtf2tga.cpp b/mp/src/utils/vtf2tga/vtf2tga.cpp
index c06999b0..926473c7 100644
--- a/mp/src/utils/vtf2tga/vtf2tga.cpp
+++ b/mp/src/utils/vtf2tga/vtf2tga.cpp
@@ -187,7 +187,7 @@ int main( int argc, char **argv )
for ( int z = 0; z < iDepth; ++z )
{
// Construct output filename
- char *pTempNameBuf = (char *)stackalloc( iTGANameLen + 13 );
+ char *pTempNameBuf = new char[iTGANameLen + 13];//(char *)stackalloc( iTGANameLen + 13 );
Q_strncpy( pTempNameBuf, pOutFileNameBase, iTGANameLen + 1 );
char *pExt = Q_strrchr( pTempNameBuf, '.' );
if ( pExt )
@@ -306,6 +306,8 @@ int main( int argc, char **argv )
{
PFMWrite( ( float * )pDstImage, pTempNameBuf, iWidth, iHeight );
}
+
+ delete[] pTempNameBuf;
}
}
}