1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix OpenGL 2D custom shader crash on newer Android devices

This commit is contained in:
hogliux 2016-01-28 17:04:16 +00:00
parent 0e21dbf3df
commit 082b15969f

View file

@ -1853,7 +1853,7 @@ struct CustomProgram : public ReferenceCountedObject,
OpenGLGraphicsContextCustomShader::OpenGLGraphicsContextCustomShader (const String& fragmentShaderCode)
: code (String (JUCE_DECLARE_VARYING_COLOUR
JUCE_DECLARE_VARYING_PIXELPOS
"\n" JUCE_MEDIUMP " float pixelAlpha = frontColour.a;\n") + fragmentShaderCode),
"\n#define pixelAlpha frontColour.a\n") + fragmentShaderCode),
hashName (String::toHexString (fragmentShaderCode.hashCode64()) + "_shader")
{
}