PNG loaded via stb_image requires mipmapping to work
Just a followup issue about what we discussed in the Simulant discord - https://discord.com/channels/488332893324836864/488333551704473601/1199028961385132164
For some reason PNGs w/ Alpha ( and without ) channel refuse to render unless glGenerateMipmapExt(GL_TEXTURE_2d); is added after glTexImage2D.
ex:
glTexImage2D( GL_TEXTURE_2D,
0,
GL_RGBA,
width,
height,
0,
GL_RGBA,
GL_UNSIGNED_BYTE,
data
);
glGenerateMipmapEXT(GL_TEXTURE_2D);
Discovered that if you disable blend but continue to use RGBA /RGBA/GL_UNSIGNED_BYTE you get
Which is very similar to the output of a KMG with the same exact senario using disabled blending and RGBA/BGRA/GL_UNSIGNED_SHORT_4_4_4_4_REV_TWID_KOS.
Notice the pink line is there on both but for some reason without mipmaps the actual texture is still missing.
I was going through some of my GL books and found a throwaway example that mentioned mip maps so I threw it in on a whim and it ended up working.