Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a228122cf |
+2
-2
@@ -4,9 +4,9 @@
|
||||
#define CONSTANTS_H
|
||||
|
||||
static const char *vertex_shader_text =
|
||||
"#version 460\n"
|
||||
"#version 140\n"
|
||||
"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"
|
||||
"out vec2 vUV;\n"
|
||||
"void main()\n"
|
||||
|
||||
+3
-1
@@ -89,7 +89,9 @@ create_window(GLFWmonitor *monitor, const char *title,
|
||||
#ifdef GL_DEBUG
|
||||
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE);
|
||||
#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
|
||||
window = glfwCreateWindow(1, 1, title, monitor, shared_context);
|
||||
|
||||
Reference in New Issue
Block a user