This commit is contained in:
parent
4d0e043f4c
commit
055ff4f5ce
@ -19,6 +19,7 @@
|
||||
#include<GLFW/glfw3.h>
|
||||
#include"ssort.h"
|
||||
#include<ctype.h>
|
||||
#include<math.h>
|
||||
|
||||
/*
|
||||
* This is by far the least clean or well-maintained source in the
|
||||
@ -1722,7 +1723,7 @@ static int dagame_mdl(lua_State *L) {
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
struct k3Mdl *mdl = k3MdlCreate(vertexCount, indexCount, 0, positions, normals, uvs, NULL, NULL, NULL, indices, NULL, NULL);
|
||||
struct k3Mdl *mdl = k3MdlCreate(vertexCount, indexCount, 0, positions, normals, (float*) uvs, NULL, NULL, NULL, indices, NULL, NULL);
|
||||
|
||||
struct k3Mdl **ud = lua_newuserdata(L, sizeof(*ud));
|
||||
*ud = mdl;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user