mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-26 21:40:07 +00:00
Fixed compile warnings in ptex examples on macOS
This commit is contained in:
parent
46fac4324d
commit
b49d40100d
@ -449,7 +449,7 @@ PtexMipmapTextureLoader::PtexMipmapTextureLoader(PtexTexture *ptex,
|
||||
bool seamlessMipmap,
|
||||
bool padAlpha) :
|
||||
_ptex(ptex), _maxLevels(maxLevels), _bpp(0),
|
||||
_pageWidth(0), _pageHeight(0), _padAlpha(padAlpha),
|
||||
_pageWidth(0), _pageHeight(0),
|
||||
_texelBuffer(NULL), _layoutBuffer(NULL), _memoryUsage(0)
|
||||
{
|
||||
// byte per pixel
|
||||
@ -512,7 +512,7 @@ PtexMipmapTextureLoader::addAlphaChannel() {
|
||||
unsigned char const * src = _texelBuffer;
|
||||
unsigned char * dest = texBuffer;
|
||||
|
||||
for (int i=0; i<numTexels; ++i, src+=srcStride, dest+=dstStride) {
|
||||
for (int i=0; i<(int)numTexels; ++i, src+=srcStride, dest+=dstStride) {
|
||||
memcpy(dest, src, srcStride);
|
||||
|
||||
/// set alpha to 1
|
||||
|
@ -147,8 +147,6 @@ private:
|
||||
int _bpp;
|
||||
int _pageWidth, _pageHeight;
|
||||
|
||||
bool _padAlpha;
|
||||
|
||||
unsigned char *_texelBuffer;
|
||||
unsigned char *_layoutBuffer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user