summaryrefslogtreecommitdiff
path: root/gfx/gl/shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shader.h')
-rw-r--r--gfx/gl/shader.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h
index c6b45af..1e4a2ee 100644
--- a/gfx/gl/shader.h
+++ b/gfx/gl/shader.h
@@ -15,10 +15,12 @@ public:
}
[[nodiscard]] ShaderRef compile() const;
- static void CheckShaderError(GLuint shader, GLuint flag, bool isProgram, std::string_view errorMessage);
private:
- const std::basic_string_view<GLchar> text;
+ using Source = std::basic_string_view<GLchar>;
+
+ void checkShaderError(GLuint shader, GLuint flag, std::string_view errorMessage) const;
+ const Source text;
GLuint type;
bool lookups;
};