Skip to content

Commit

Permalink
fix texture 2d check in load texture of ofMaterial (#7798)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickHardeman authored Dec 6, 2023
1 parent 05b7da4 commit c4cf417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/gl/ofMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void ofMaterial::setTexCoordScale( float xscale, float yscale ) {

//----------------------------------------------------------
bool ofMaterial::loadTexture( const ofMaterialTextureType& aMaterialTextureType, std::string apath ) {
return loadTexture(aMaterialTextureType, apath, ofGetUsingArbTex(), false);
return loadTexture(aMaterialTextureType, apath, !ofGetUsingArbTex(), false);
}

//----------------------------------------------------------
Expand Down

0 comments on commit c4cf417

Please sign in to comment.