mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 19:25:42 -04:00
PostProcessing/FX: Fix GLSL compile error with discard
This commit is contained in:
parent
9cdff4781f
commit
101ebe3ac3
@ -1170,7 +1170,8 @@ bool PostProcessing::ReShadeFXShader::CompilePipeline(GPUTexture::Format format,
|
|||||||
if (needs_main_defn)
|
if (needs_main_defn)
|
||||||
{
|
{
|
||||||
// dFdx/dFdy are not defined in the vertex shader.
|
// dFdx/dFdy are not defined in the vertex shader.
|
||||||
const char* defns = (stage == GPUShaderStage::Vertex) ? "#define dFdx(x) x\n#define dFdy(x) x\n" : "";
|
const char* defns =
|
||||||
|
(stage == GPUShaderStage::Vertex) ? "#define dFdx(x) x\n#define dFdy(x) x\n#define discard\n" : "";
|
||||||
const char* precision = (api == RenderAPI::OpenGLES) ?
|
const char* precision = (api == RenderAPI::OpenGLES) ?
|
||||||
"precision highp float;\nprecision highp int;\nprecision highp sampler2D;\n" :
|
"precision highp float;\nprecision highp int;\nprecision highp sampler2D;\n" :
|
||||||
"";
|
"";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user