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:
parent
0e21dbf3df
commit
082b15969f
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue