diff --git a/README.md b/README.md index 2a9bdfb..59a613c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ To compile for windows, MSYS2 is used. First verify that all required packages a ## License ``` -Copyright (c) 2022 Wojciech Graj +Copyright (c) 2022-2023 Wojciech Graj This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/res/shader/earth.frag b/res/shader/earth.frag index fedf645..cfeb26b 100644 --- a/res/shader/earth.frag +++ b/res/shader/earth.frag @@ -1,4 +1,5 @@ -#version 430 core +#version 410 core +#extension GL_ARB_explicit_uniform_location : enable out vec4 frag_color; diff --git a/res/shader/earth.vert b/res/shader/earth.vert index 591cf4f..770d927 100644 --- a/res/shader/earth.vert +++ b/res/shader/earth.vert @@ -1,4 +1,5 @@ -#version 430 core +#version 410 core +#extension GL_ARB_explicit_uniform_location : enable layout (location = 0) in vec3 in_pos; layout (location = 1) in vec2 in_uv; diff --git a/res/shader/satellite.frag b/res/shader/satellite.frag index 94a5754..ed8c374 100644 --- a/res/shader/satellite.frag +++ b/res/shader/satellite.frag @@ -1,4 +1,5 @@ -#version 430 core +#version 410 core +#extension GL_ARB_explicit_uniform_location : enable out vec4 frag_color; diff --git a/res/shader/satellite.vert b/res/shader/satellite.vert index 8b8943f..6efc7af 100644 --- a/res/shader/satellite.vert +++ b/res/shader/satellite.vert @@ -1,4 +1,5 @@ -#version 430 core +#version 410 core +#extension GL_ARB_explicit_uniform_location : enable layout (location = 0) in vec3 in_pos; layout (location = 1) in vec3 in_color; diff --git a/res/shader/sky.frag b/res/shader/sky.frag index b963cd3..5d3d65a 100644 --- a/res/shader/sky.frag +++ b/res/shader/sky.frag @@ -1,4 +1,5 @@ -#version 430 core +#version 410 core +#extension GL_ARB_explicit_uniform_location : enable out vec4 frag_color; diff --git a/res/shader/sky.vert b/res/shader/sky.vert index c4faae8..170143d 100644 --- a/res/shader/sky.vert +++ b/res/shader/sky.vert @@ -1,4 +1,6 @@ -#version 430 core +#version 410 core +#extension GL_ARB_explicit_uniform_location : enable + layout (location = 0) in vec3 in_pos; layout (location = 1) in vec2 in_uv; diff --git a/src/gfx/gfx.c b/src/gfx/gfx.c index decc000..43c6376 100644 --- a/src/gfx/gfx.c +++ b/src/gfx/gfx.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Wojciech Graj + * Copyright (c) 2022-2023 Wojciech Graj * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -88,5 +88,5 @@ void gfx_init(GtkBuilder *builder) NULL); glarea = GTK_GL_AREA(gtk_builder_get_object(builder, "glarea")); - gtk_gl_area_set_required_version(glarea, 4, 3); + gtk_gl_area_set_required_version(glarea, 4, 1); }