code cleanup

main
Dominik Madarász 2023-09-10 15:14:34 +02:00
parent 47e0d6c969
commit 687993ef40
6 changed files with 11 additions and 11 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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;