I am porting from 1.21.1 to 1.21.2 and was previously using a drawGuiTexture function to draw my custom button in the inventory. Now that method requires a Function<Identifier, RenderLayer> renderLayers parameter as well. I am passing it that parameter by doing the following:
buttonTexture -> RenderLayer.getGui()
No errors are being thrown, my button just looks incorrect