mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
SW backend: make shaders work on Intel/Windows.
Apparently the Intel shader compiler doesn't implement "#if" correctly... so use "#ifdef" instead.
This commit is contained in:
parent
47d96e449a
commit
bdcd5ba39b
2 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue