1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Prove that INPUT_PHASE_LINKED_LUMINANCE8 isn't yet correct.

This commit is contained in:
Thomas Harte
2026-01-26 22:24:27 -05:00
parent 6c8d844888
commit 4f311b510d
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ using namespace Outputs::Display::OpenGL;
CompositionShader::CompositionShader() {
const auto prefix =
std::string() +
"#define INPUT_LUMINANCE1\n" +
"#define INPUT_PHASE_LINKED_LUMINANCE8\n" +
"#define OUTPUT_COMPOSITE\n";
const auto vertex = prefix + vertex_shader;
+6 -6
View File
@@ -53,10 +53,10 @@ GLuint Shader::compile_shader(const std::string &source, const GLenum type) {
}
test_gl(glCompileShader, shader);
if constexpr (Logger::ErrorsEnabled) {
GLint is_compiled = 0;
test_gl(glGetShaderiv, shader, GL_COMPILE_STATUS, &is_compiled);
if(is_compiled == GL_FALSE) {
GLint is_compiled = 0;
test_gl(glGetShaderiv, shader, GL_COMPILE_STATUS, &is_compiled);
if(is_compiled == GL_FALSE) {
if constexpr (Logger::ErrorsEnabled) {
Logger::error().append("Failed to compile: %s", source.c_str());
GLint log_length;
test_gl(glGetShaderiv, shader, GL_INFO_LOG_LENGTH, &log_length);
@@ -66,9 +66,9 @@ GLuint Shader::compile_shader(const std::string &source, const GLenum type) {
test_gl(glGetShaderInfoLog, shader, log_length, &log_length, log.data());
Logger::error().append("Compile log: %s", log.data());
}
throw (type == GL_VERTEX_SHADER) ? VertexShaderCompilationError : FragmentShaderCompilationError;
}
throw (type == GL_VERTEX_SHADER) ? VertexShaderCompilationError : FragmentShaderCompilationError;
}
return shader;