Do any OpenGL wizards out there know if glBindTextureUnit also unbinds other targets of that unit? Docs mention unbinding all targets when texture=0, but it doesn't say anything about unbinding targets not equal to a valid texture's target. https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glBindTextureUnit.xhtml …
Giving credence to the idea that it does indeed unbind other targets is the fact that the plural variation of this function, glBindTextures (unfortunately not called glBindTextureUnits) does unbind.