Open diobat opened 1 year ago
During texture import data is moved around too much. ideally the stbi_load() function called in SceneObjectFactory should already place the data on its intended final destination.
This is potentially useful https://learnopengl.com/Advanced-OpenGL/Advanced-Data
Aditionally, stbi_image_free(data) should be called after generating the texture on openGL but that is not being done
During texture import data is moved around too much. ideally the stbi_load() function called in SceneObjectFactory should already place the data on its intended final destination.