File tree Expand file tree Collapse file tree
libs/openFrameworks/graphics Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments