diff options
| author | Jules Blok <jules.blok@gmail.com> | 2015-01-02 20:03:20 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2015-01-02 20:03:20 +0100 |
| commit | 582a15deb38a0510eded144be843f737ed51cca8 (patch) | |
| tree | 6a285bbf6f64fe2f0d4778bc72d926548165d063 /Source/Core/VideoBackends/OGL/PostProcessing.cpp | |
| parent | 26a9afa0e7f3f1d8443062c0149cf461412f4ecb (diff) | |
PostProcessing: Mark all shaders constant.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/PostProcessing.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/PostProcessing.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/OGL/PostProcessing.cpp b/Source/Core/VideoBackends/OGL/PostProcessing.cpp index 16a50cf2de..3c1bb386bf 100644 --- a/Source/Core/VideoBackends/OGL/PostProcessing.cpp +++ b/Source/Core/VideoBackends/OGL/PostProcessing.cpp @@ -18,7 +18,7 @@ namespace OGL { -static char s_vertex_workaround_shader[] = +static const char s_vertex_workaround_shader[] = "in vec4 rawpos;\n" "out vec2 uv0;\n" "uniform vec4 src_rect;\n" @@ -27,7 +27,7 @@ static char s_vertex_workaround_shader[] = " uv0 = rawpos.zw * src_rect.zw + src_rect.xy;\n" "}\n"; -static char s_vertex_shader[] = +static const char s_vertex_shader[] = "out vec2 uv0;\n" "uniform vec4 src_rect;\n" "void main(void) {\n" @@ -41,7 +41,7 @@ static char s_vertex_shader[] = // "Conversion of a Stereo Pair to Anaglyph with // the Least-Squares Projection Method" // Eric Dubois, March 2009 -static char s_anaglyph_shader[] = +static const char s_anaglyph_shader[] = "void main() {\n" " vec4 c0 = SampleLayer(0);\n" " vec4 c1 = SampleLayer(1);\n" |
