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 Jan 3, 2023
1 parent e93306f commit a6cac9a
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 a6cac9a

Please sign in to comment.