diff --git a/gtk3/main.c b/gtk3/main.c index 576a363..d8b2209 100644 --- a/gtk3/main.c +++ b/gtk3/main.c @@ -30,10 +30,10 @@ static Rect rect; static bool vram_viewer_visible = false; static bool running = true; -static const size_t tileset_buffer_length = 256 * 192 * 4; +#define tileset_buffer_length 256 * 192 * 4 static uint32_t tileset_buffer[tileset_buffer_length] = {0}; -static const size_t tilemap_buffer_length = 256 * 256 * 4; +#define tilemap_buffer_length 256 * 256 * 4 static uint32_t tilemap_buffer[tilemap_buffer_length] = {0}; static uint8_t pressed_buttons; diff --git a/gtk3/shader.c b/gtk3/shader.c index a247c4b..aca7624 100644 --- a/gtk3/shader.c +++ b/gtk3/shader.c @@ -1,5 +1,3 @@ -#include -#include #include "shader.h" static const char *vertex_shader = "\n\ diff --git a/gtk3/shader.h b/gtk3/shader.h index d276f73..6923738 100644 --- a/gtk3/shader.h +++ b/gtk3/shader.h @@ -2,6 +2,9 @@ #define shader_h #include #include +#include +#include +#include typedef struct shader_s { GLuint resolution_uniform;