mirror of https://github.com/bjornbytes/lovr.git
Fix more warnings;
This commit is contained in:
parent
9b7b4e323c
commit
eba71d5921
|
@ -186,6 +186,7 @@ static int l_lovrSystemGetWindowDimensions(lua_State* L) {
|
|||
|
||||
static int l_lovrSystemGetWindowDensity(lua_State* L) {
|
||||
lua_pushnumber(L, lovrSystemGetWindowDensity());
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int l_lovrSystemIsKeyDown(lua_State* L) {
|
||||
|
|
|
@ -1168,7 +1168,7 @@ static Image* loadKTX2(Blob* blob) {
|
|||
|
||||
static Image* loadSTB(Blob* blob) {
|
||||
void* data;
|
||||
uint32_t flags;
|
||||
uint32_t flags = 0;
|
||||
TextureFormat format;
|
||||
int width, height, channels;
|
||||
if (stbi_is_16_bit_from_memory(blob->data, (int) blob->size)) {
|
||||
|
|
|
@ -32,8 +32,6 @@ ModelData* lovrModelDataCreate(Blob* source, ModelDataIO* io) {
|
|||
lovrModelDataFinalize(model);
|
||||
|
||||
return model;
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
void lovrModelDataDestroy(void* ref) {
|
||||
|
|
|
@ -2505,9 +2505,9 @@ Model* lovrModelCreate(const ModelInfo* info) {
|
|||
}
|
||||
|
||||
// Buffers
|
||||
char* vertices;
|
||||
char* indices;
|
||||
char* skinData;
|
||||
char* vertices = NULL;
|
||||
char* indices = NULL;
|
||||
char* skinData = NULL;
|
||||
|
||||
BufferInfo vertexBufferInfo = {
|
||||
.length = data->vertexCount,
|
||||
|
|
Loading…
Reference in New Issue