1 Commits
Author SHA1 Message Date
klemek 3a228122cf fix: compatibility
Clang Build CI / run-no-video (push) Successful in 49s
Clang Build CI / run-video (push) Successful in 51s
Clang Lint CI / lint-no-video (push) Successful in 56s
Clang Build CI / build-release (push) Successful in 1m14s
Clang Lint CI / lint-video (push) Successful in 46s
2026-08-27 17:21:30 +02:00
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -4,9 +4,9 @@
#define CONSTANTS_H #define CONSTANTS_H
static const char *vertex_shader_text = static const char *vertex_shader_text =
"#version 460\n" "#version 140\n"
"const mat4 mvp = " "const mat4 mvp = "
"{{2.,0.,0.,0.},{0.,2.,0.,0.},{0.,0.,2.,0.},{-1.,-1.,1.,1.}};\n" "mat4(vec4(2.,0.,0.,0.),vec4(0.,2.,0.,0.),vec4(0.,0.,2.,0.),vec4(-1.,-1.,1.,1.));\n"
"in vec2 vPos;\n" "in vec2 vPos;\n"
"out vec2 vUV;\n" "out vec2 vUV;\n"
"void main()\n" "void main()\n"
+3 -1
View File
@@ -89,7 +89,9 @@ create_window(GLFWmonitor *monitor, const char *title,
#ifdef GL_DEBUG #ifdef GL_DEBUG
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE); glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE);
#endif #endif
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); if (opengl_major > 4 || (opengl_major == 3 && opengl_minor >= 2)) {
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
}
// create fullscreen window in selected monitor // create fullscreen window in selected monitor
window = glfwCreateWindow(1, 1, title, monitor, shared_context); window = glfwCreateWindow(1, 1, title, monitor, shared_context);