Skip to content

Commit 712b818

Browse files
committed
fix ofPixels
1 parent 654957c commit 712b818

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libs/openFrameworks/graphics/ofPixels.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static size_t channelsFromPixelFormat(ofPixelFormat format){
168168
return 2;
169169
break;
170170
default:
171-
ofLog(OF_LOG_ERROR,"ofPixels: format doesn't support channels");
171+
ofLogError("ofPixels") << "format doesn't support channels";
172172
return 1;
173173
}
174174
}
@@ -185,7 +185,7 @@ static ofPixelFormat ofPixelFormatFromImageType(ofImageType type){
185185
return OF_PIXELS_RGBA;
186186
break;
187187
default:
188-
ofLog(OF_LOG_ERROR,"ofPixels: image type not supported");
188+
ofLogError("ofPixels") << "image type not supported";
189189
return OF_PIXELS_UNKNOWN;
190190
}
191191
}
@@ -207,7 +207,7 @@ static ofImageType ofImageTypeFromPixelFormat(ofPixelFormat pixelFormat){
207207
case OF_PIXELS_UNKNOWN:
208208
return OF_IMAGE_UNDEFINED;
209209
default:
210-
ofLog(OF_LOG_ERROR,"ofPixels: image type not supported");
210+
ofLogError("ofPixels") << "image type not supported";
211211
return OF_IMAGE_UNDEFINED;
212212
}
213213
}

0 commit comments

Comments
 (0)