Skip to content

Commit 9885c9e

Browse files
authored
ofCubeMap.cpp - remove unused bAllPixelsCreated (#7365)
#changelog #gl
1 parent f52655b commit 9885c9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/openFrameworks/gl/ofCubeMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ void ofCubeMap::_createPrefilteredCubeMap(GLuint aSrcCubeFid, int aSrcRes, bool
991991

992992
vector<ofFloatPixels> fpixels;
993993
fpixels.assign(6, ofFloatPixels() );
994-
bool bAllPixelsCreated = true;
994+
// bool bAllPixelsCreated = true;
995995

996996
int shiftX = 0;
997997
int shiftY = 0;
@@ -1028,7 +1028,7 @@ void ofCubeMap::_createPrefilteredCubeMap(GLuint aSrcCubeFid, int aSrcRes, bool
10281028

10291029
tfbo.readToPixels(fpixels[i]);
10301030
if( fpixels[i].getWidth() < 1 || fpixels[i].getHeight() < 1 ) {
1031-
bAllPixelsCreated = false;
1031+
// bAllPixelsCreated = false;
10321032
} else {
10331033
cacheFbo.begin();
10341034
tfbo.getTexture().draw( (i%3) * mipWidth + shiftX, floor(i/3) * mipWidth + shiftY, mipWidth, mipWidth );

0 commit comments

Comments
 (0)