Fix gamma, add Glad, error if glad is compiled with emscripten

This commit is contained in:
PedroEdiaz
2024-11-28 09:55:48 -06:00
parent 589721a953
commit 1e009d5bdf
5 changed files with 19 additions and 9 deletions

View File

@@ -5,7 +5,7 @@
*/
/* #define DEBUG */
/* #define GLAD */
#define GLAD
typedef const void * window_t;
typedef unsigned int id_t;
@@ -154,3 +154,9 @@ void destroy_texture(id_t texture);
id_t create_palette_texture(const unsigned char colors[][4], unsigned char n );
quat_t poll_input(window_t window);
#ifdef EMSCRIPTEN
#ifdef GLAD
#error undefine GLAD on src/main.h please
#endif
#endif