From 402e33f1885ce37ecc6e16937c4da3f2e02b36df Mon Sep 17 00:00:00 2001 From: NickHardeman Date: Wed, 6 Dec 2023 15:00:41 -0500 Subject: [PATCH] fix texture 2d check in load texture of ofMaterial --- libs/openFrameworks/gl/ofMaterial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/openFrameworks/gl/ofMaterial.cpp b/libs/openFrameworks/gl/ofMaterial.cpp index 4a8a1d42829..3af75f99612 100644 --- a/libs/openFrameworks/gl/ofMaterial.cpp +++ b/libs/openFrameworks/gl/ofMaterial.cpp @@ -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); } //----------------------------------------------------------