removed unused information from texture,

don't copy the data, give a pointer,
there is some data left, need to find out if it's from these changes
This commit is contained in:
Anakin
2016-11-24 19:40:17 +01:00
parent 97a38d5260
commit e1e8e165fe
4 changed files with 38 additions and 42 deletions

View File

@@ -455,7 +455,7 @@ void OpenGLController::loadMsh(const char * path)
tempData->alpha = tempTex.hasAlpha();
tempData->width = tempTex.getWidth();
tempData->height = tempTex.getHeight();
tempData->data = new std::vector<std::uint8_t>(tempTex.getData());
tempData->data = tempTex.getData();
}
catch (std::invalid_argument e)
{