chore: dial down required version to 330

This commit is contained in:
Almamu 2025-04-01 00:05:46 +02:00
parent bab3bdd9a0
commit e17c4f319e

View File

@ -154,7 +154,7 @@ std::string CGLSLContext::toGlsl (const std::string& content, ShaderType type) {
shader.setAutoMapBindings (true); shader.setAutoMapBindings (true);
if (!shader.parse (&BuiltInResource, 100, false, EShMsgDefault)) { if (!shader.parse (&BuiltInResource, 100, false, EShMsgDefault)) {
sLog.error ("GLSL Parsing Failed: %s", shader.getInfoLog()); sLog.error ("GLSL Parsing Failed: ", shader.getInfoLog());
return ""; return "";
} }
@ -162,7 +162,7 @@ std::string CGLSLContext::toGlsl (const std::string& content, ShaderType type) {
program.addShader (&shader); program.addShader (&shader);
if (!program.link (EShMsgDefault)) { if (!program.link (EShMsgDefault)) {
sLog.error ("Program Linking Failed: %s", program.getInfoLog()); sLog.error ("Program Linking Failed: ", program.getInfoLog());
return ""; return "";
} }
@ -171,7 +171,7 @@ std::string CGLSLContext::toGlsl (const std::string& content, ShaderType type) {
spirv_cross::CompilerGLSL compiler(spirv); spirv_cross::CompilerGLSL compiler(spirv);
spirv_cross::CompilerGLSL::Options options; spirv_cross::CompilerGLSL::Options options;
options.version = 450; // OpenGL 4.5 / Vulkan GLSL TODO: MAYBE THIS CAN BE CHANGED? options.version = 330; // OpenGL 4.5 / Vulkan GLSL TODO: MAYBE THIS CAN BE CHANGED?
options.es = false; options.es = false;
compiler.set_common_options(options); compiler.set_common_options(options);