Following this (strangely downvoted) advice I was able to fix the stb image issue. I extracted the texture loading into a new file which is now the only place we include the stb_image.h header. So I threw out the extra header file which we won't need anymore.
Following this (strangely downvoted) advice I was able to fix the stb image issue. I extracted the texture loading into a new file which is now the only place we include the stb_image.h header. So I threw out the extra header file which we won't need anymore.