diff --git a/engine/bind/v4k.lua b/engine/bind/v4k.lua index 5920db0..9c79172 100644 --- a/engine/bind/v4k.lua +++ b/engine/bind/v4k.lua @@ -2520,8 +2520,8 @@ handle program; mesh_t geometry; cubemap_t cubemap; int flags; -unsigned framebuffers[6]; -unsigned textures[6]; +int framebuffers[6]; +int textures[6]; unsigned char *pixels; } skybox_t; skybox_t skybox(const char *panorama_or_cubemap_folder, int flags); diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index bd995c9..154318f 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -16769,8 +16769,8 @@ typedef struct skybox_t { int flags; // mie - unsigned framebuffers[6]; - unsigned textures[6]; + int framebuffers[6]; + int textures[6]; unsigned char *pixels; } skybox_t; @@ -342409,7 +342409,7 @@ skybox_t skybox(const char *asset, int flags) { void skybox_mie_calc_sh(skybox_t *sky) { unsigned WIDTH = 512, HEIGHT = 512; - unsigned last_fb; + int last_fb; int vp[4]; glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb); glGetIntegerv(GL_VIEWPORT, vp); diff --git a/engine/split/v4k_render.c b/engine/split/v4k_render.c index f6bc970..363f45c 100644 --- a/engine/split/v4k_render.c +++ b/engine/split/v4k_render.c @@ -2402,7 +2402,7 @@ skybox_t skybox(const char *asset, int flags) { void skybox_mie_calc_sh(skybox_t *sky) { unsigned WIDTH = 512, HEIGHT = 512; - unsigned last_fb; + int last_fb; int vp[4]; glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb); glGetIntegerv(GL_VIEWPORT, vp); diff --git a/engine/split/v4k_render.h b/engine/split/v4k_render.h index 4eba2f9..d66008b 100644 --- a/engine/split/v4k_render.h +++ b/engine/split/v4k_render.h @@ -614,8 +614,8 @@ typedef struct skybox_t { int flags; // mie - unsigned framebuffers[6]; - unsigned textures[6]; + int framebuffers[6]; + int textures[6]; unsigned char *pixels; } skybox_t; diff --git a/engine/v4k.c b/engine/v4k.c index 0b9b4f5..745fd73 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -13311,7 +13311,7 @@ skybox_t skybox(const char *asset, int flags) { void skybox_mie_calc_sh(skybox_t *sky) { unsigned WIDTH = 512, HEIGHT = 512; - unsigned last_fb; + int last_fb; int vp[4]; glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &last_fb); glGetIntegerv(GL_VIEWPORT, vp); diff --git a/engine/v4k.h b/engine/v4k.h index 446b207..1269c4f 100644 --- a/engine/v4k.h +++ b/engine/v4k.h @@ -2852,8 +2852,8 @@ typedef struct skybox_t { int flags; // mie - unsigned framebuffers[6]; - unsigned textures[6]; + int framebuffers[6]; + int textures[6]; unsigned char *pixels; } skybox_t;