I have a function which loads an image from file and successfully creates an opengl texture from it.
/** * @brief Loads a