Some GLES implementations generate GL_INVALID_ENUM when querying
Yes, I have a strong suspicion that the Mali GLES implementation does not support querying that flag even though it advertises v3.2. I'm waiting on hearing back on this, but I also don't see a issue with adding what is essentially better error checking in our code?
The problem I see with it is that we're working around one specific GLES implementation. Given that querying context flags was introduced in 3.2, this should be discussed first with folks that develop the Mali GLES implementation.
I've heard back from Mali upstream and this particular bug has been fixed in r20 of their blob, and I'm pushing Rockchip to get that driver released. I'm still of the opinion that adding the error check is a good idea though. Any thoughts?