diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-05-28 11:45:22 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-05-28 11:45:22 +0100 |
commit | fdea7529ba09a615d92da5823429b49c7e565c9d (patch) | |
tree | 67b12689c60dc2e75a5587988dd11bf36c12da9a /gfx/gl/shader.h | |
parent | Mark main rule as always, so we can always launch it (diff) | |
parent | Swap GLEW for more modern glad (diff) | |
download | ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.tar.bz2 ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.tar.xz ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.zip |
Merge branch 'glad'
Diffstat (limited to 'gfx/gl/shader.h')
-rw-r--r-- | gfx/gl/shader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h index cb8065b..0810e6b 100644 --- a/gfx/gl/shader.h +++ b/gfx/gl/shader.h @@ -1,13 +1,13 @@ #pragma once -#include <GL/glew.h> #include <glRef.h> +#include <glad/gl.h> #include <optional> #include <string_view> class Shader { public: - using ShaderRef = glRef<GLuint, &__glewCreateShader, &__glewDeleteShader>; + using ShaderRef = glRef<GLuint, &glCreateShader, &glDeleteShader>; constexpr Shader(const GLchar * text, GLint len, GLuint type) : text {text}, len {len}, type {type} { } [[nodiscard]] ShaderRef compile() const; |