16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 15:49:19 +02:00
This commit is contained in:
VB
2017-02-20 19:45:36 +01:00
parent d262216f27
commit 64e3e8102d

View File

@@ -1540,6 +1540,7 @@ void TSubModel::InfoSet(TSubModelInfo *info)
int ile = (char *)&uiDisplayList - (char *)&eType; // ilość bajtów pomiędzy tymi zmiennymi
ZeroMemory(this, sizeof(TSubModel)); // zerowaie całości
CopyMemory(this, info->pSubModel, ile); // skopiowanie pamięci 1:1
tVboPtr = (int)info->pSubModel->iVboPtr;
iTexture = info->iTexture; // numer nazwy tekstury, a nie numer w OpenGL
TextureID = info->iTexture; // numer tekstury w OpenGL
iName = info->iName; // numer nazwy w obszarze nazw