Skip to content

Commit c4cf417

Browse files
authored
fix texture 2d check in load texture of ofMaterial (#7798)
1 parent 05b7da4 commit c4cf417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/openFrameworks/gl/ofMaterial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void ofMaterial::setTexCoordScale( float xscale, float yscale ) {
276276

277277
//----------------------------------------------------------
278278
bool ofMaterial::loadTexture( const ofMaterialTextureType& aMaterialTextureType, std::string apath ) {
279-
return loadTexture(aMaterialTextureType, apath, ofGetUsingArbTex(), false);
279+
return loadTexture(aMaterialTextureType, apath, !ofGetUsingArbTex(), false);
280280
}
281281

282282
//----------------------------------------------------------

0 commit comments

Comments
 (0)