Skip to content

Commit 68f5ef1

Browse files
committed
engine: Set size type as intp on x86-64
1 parent fd5b35d commit 68f5ef1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/buildcubemaps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ void Cubemap_CreateDefaultCubemap( const char *pMapName, IBSPPack *iBSPPack )
685685
// Copy the bits from the source images into the cube faces
686686
// unsigned char *pSrcBits = pSrcVTFTextures[iFace]->ImageData( iFrame, 0, iMip + iMipLevelOffset );
687687
unsigned char *pDstBits = pDstCubemap->ImageData( iFrame, iFace, iMip );
688-
int iSize = pDstCubemap->ComputeMipSize( iMip );
688+
intp iSize = pDstCubemap->ComputeMipSize( iMip );
689689
// int iSrcMipSize = pSrcVTFTextures[iFace]->ComputeMipSize( iMip + iMipLevelOffset );
690690

691691
// !!! FIXME: Set this to black until the LDR/HDR issues are fixed on line ~563 in this file
@@ -712,7 +712,7 @@ void Cubemap_CreateDefaultCubemap( const char *pMapName, IBSPPack *iBSPPack )
712712
{
713713
// set alpha to zero since the source doesn't have any alpha in it
714714
unsigned char *pImageData = pDstCubemap->ImageData();
715-
int size = pDstCubemap->ComputeTotalSize(); // in bytes!
715+
intp size = pDstCubemap->ComputeTotalSize(); // in bytes!
716716
unsigned char *pEnd = pImageData + size;
717717
for( ; pImageData < pEnd; pImageData += 4 )
718718
{

0 commit comments

Comments
 (0)