From 969999f9858043d2a2053f93209f878a3eb5a02a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 3 Aug 2024 12:23:54 +0100 Subject: Split CheckShaderError into shader/program versions They're similar, but need splitting for better diagnostics --- gfx/gl/shader.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gfx/gl/shader.h') 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 text; + using Source = std::basic_string_view; + + void checkShaderError(GLuint shader, GLuint flag, std::string_view errorMessage) const; + const Source text; GLuint type; bool lookups; }; -- cgit v1.2.3