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

@@ -4,8 +4,8 @@
#include <GL/gl.h>
#else
#ifdef GLAD
#include <GLFW/glfw3.h>
#include <glad.h>
#include <GLFW/glfw3.h>
#else
#include <GL/glew.h>
#endif
@@ -14,7 +14,6 @@
void set_clean_color_context(unsigned char r, unsigned char g, unsigned char b)
{
glEnable(GL_DEPTH_TEST);
glEnable(GL_FRAMEBUFFER_SRGB);
glClearColor((float)r / 0xff, (float)g / 0xff, (float)b / 0xff, 1.0);
}