diff --git a/Sources/Plasma/FeatureLib/pfGLPipeline/plGLMaterialShaderRef.cpp b/Sources/Plasma/FeatureLib/pfGLPipeline/plGLMaterialShaderRef.cpp index 70946fed21..674a464a06 100644 --- a/Sources/Plasma/FeatureLib/pfGLPipeline/plGLMaterialShaderRef.cpp +++ b/Sources/Plasma/FeatureLib/pfGLPipeline/plGLMaterialShaderRef.cpp @@ -284,6 +284,8 @@ void plGLMaterialShaderRef::SetupTextureRefs() continue; } + fPipeline->CheckTextureRef(layer); + plGLTextureRef* texRef = static_cast(img->GetDeviceRef()); if (!texRef->fRef) { @@ -291,8 +293,6 @@ void plGLMaterialShaderRef::SetupTextureRefs() continue; } - fPipeline->CheckTextureRef(layer); - LOG_GL_ERROR_CHECK("PRE-Active Texture failed") glActiveTexture(GL_TEXTURE0 + numTextures);