Added @Optional support for AL and GLES.
Authored by: spasi 2011-10-12
Parent: [r3661]
Child: [r3663]