Fix gamma, add Glad, error if glad is compiled with emscripten
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user