Skip to content

Commit

Permalink
Add macos support.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Mar 16, 2023
1 parent 6554a99 commit fa3e362
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion res/shader/earth.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#version 430 core
#version 410 core
#extension GL_ARB_explicit_uniform_location : enable

out vec4 frag_color;

Expand Down
3 changes: 2 additions & 1 deletion res/shader/earth.vert
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 2 additions & 1 deletion res/shader/satellite.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#version 430 core
#version 410 core
#extension GL_ARB_explicit_uniform_location : enable

out vec4 frag_color;

Expand Down
3 changes: 2 additions & 1 deletion res/shader/satellite.vert
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 2 additions & 1 deletion res/shader/sky.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#version 430 core
#version 410 core
#extension GL_ARB_explicit_uniform_location : enable

out vec4 frag_color;

Expand Down
4 changes: 3 additions & 1 deletion res/shader/sky.vert
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/gfx/gfx.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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);
}

0 comments on commit fa3e362

Please sign in to comment.