OpenGLRenderer: Add shader source on compilation error

This commit is contained in:
Jérôme Leclercq
2022-02-18 13:05:19 +01:00
parent c33ab779d1
commit ebd1318512
3 changed files with 30 additions and 3 deletions

View File

@@ -26,7 +26,8 @@ namespace Nz::GL
inline void Compile();
inline bool GetCompilationStatus(std::string* error = nullptr);
inline bool GetCompilationStatus(std::string* error = nullptr) const;
inline std::string GetSource() const;
inline void SetBinarySource(GLenum binaryFormat, const void* binary, GLsizei length);
inline void SetSource(const char* source, GLint length);