diff options
| author | magumagu <magumagu9@gmail.com> | 2014-03-29 13:10:43 -0700 |
|---|---|---|
| committer | magumagu <magumagu9@gmail.com> | 2014-03-29 13:10:43 -0700 |
| commit | bdcd5ba39bd3a7af45087644f5dea6071bbafea8 (patch) | |
| tree | dc549aa5bc25e1c1420f49b8275ac840baa532fe /Source/Core/VideoBackends/Software/HwRasterizer.cpp | |
| parent | 47d96e449a5fcee8280368b8ec72eab551b87d31 (diff) | |
SW backend: make shaders work on Intel/Windows.
Apparently the Intel shader compiler doesn't implement "#if" correctly...
so use "#ifdef" instead.
Diffstat (limited to 'Source/Core/VideoBackends/Software/HwRasterizer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/HwRasterizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/HwRasterizer.cpp b/Source/Core/VideoBackends/Software/HwRasterizer.cpp index e140199c43..1a85b34263 100644 --- a/Source/Core/VideoBackends/Software/HwRasterizer.cpp +++ b/Source/Core/VideoBackends/Software/HwRasterizer.cpp @@ -39,7 +39,7 @@ namespace HwRasterizer { // Color Vertices static const char *fragcolText = - "#if GL_ES\n" + "#ifdef GL_ES\n" "precision highp float;\n" "#endif\n" "varying vec4 TexCoordOut;\n" @@ -48,7 +48,7 @@ namespace HwRasterizer "}\n"; // Texture Vertices static const char *fragtexText = - "#if GL_ES\n" + "#ifdef GL_ES\n" "precision highp float;\n" "#define texture2DRect texture2D\n" "#define sampler2DRect sampler2D\n" @@ -60,7 +60,7 @@ namespace HwRasterizer "}\n"; // Clear shader static const char *fragclearText = - "#if GL_ES\n" + "#ifdef GL_ES\n" "precision highp float;\n" "#endif\n" "uniform vec4 Color;\n" |
