Skip to content

Commit

Permalink
Fix GL pipeline crash opening the KI
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Feb 21, 2023
1 parent 95f722f commit 95b7c69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,15 @@ void plGLMaterialShaderRef::SetupTextureRefs()
continue;
}

fPipeline->CheckTextureRef(layer);

plGLTextureRef* texRef = static_cast<plGLTextureRef*>(img->GetDeviceRef());

if (!texRef->fRef) {
layer = fPipeline->IPopOverAllLayer(layer);
continue;
}

fPipeline->CheckTextureRef(layer);

LOG_GL_ERROR_CHECK("PRE-Active Texture failed")

glActiveTexture(GL_TEXTURE0 + numTextures);
Expand Down

0 comments on commit 95b7c69

Please sign in to comment.