Skip to content

Commit 03e4d70

Browse files
committed
downgrade shaders to glsl 1.30
1 parent 60ca652 commit 03e4d70

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

Data/Base.rte/Shaders/Blit8.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Blit8.frag
2-
#version 330 core
2+
#version 130
33

44
in vec2 textureUV;
55

Data/Base.rte/Shaders/Blit8.vert

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#version 330 core
1+
#version 130
22

3-
layout(location = 0) in vec2 rteVertexPosition;
4-
layout(location = 1) in vec2 rteTexUV;
3+
in vec2 rteVertexPosition;
4+
in vec2 rteTexUV;
55

66
out vec2 textureUV;
77

Data/Base.rte/Shaders/PostProcess.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#version 330 core
1+
#version 130
22

33
in vec2 textureUV;
44

Data/Base.rte/Shaders/PostProcess.vert

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#version 330 core
1+
#version 130
22

3-
layout(location = 0) in vec2 rteVertexPosition;
4-
layout(location = 1) in vec2 rteTexUV;
3+
in vec2 rteVertexPosition;
4+
in vec2 rteTexUV;
55

66
out vec2 textureUV;
77

Data/Base.rte/Shaders/ScreenBlit.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#version 330 core
1+
#version 130
22

33
in vec2 textureUV;
44

Data/Base.rte/Shaders/ScreenBlit.vert

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#version 330 core
1+
#version 130
22

3-
layout(location = 0) in vec2 rteVertexPosition;
4-
layout(location = 1) in vec2 rteTexUV;
3+
in vec2 rteVertexPosition;
4+
in vec2 rteTexUV;
55

66
out vec2 textureUV;
77

Source/Managers/WindowMan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ void WindowMan::Initialize() {
9999

100100
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
101101
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
102-
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
103-
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
102+
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
103+
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
104104
CreatePrimaryWindow();
105105
InitializeOpenGL();
106106
CreateBackBufferTexture();

0 commit comments

Comments
 (0)