Some GLES implementations generate GL_INVALID_ENUM when querying
for GL_CONTEXT_FLAGS.
Details
Diff Detail
- Repository
- R108 KWin
- Branch
- master
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 7423 Build 7441: arc lint + arc unit
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.
The nvidia thing is with glGetError
checkglerror is in our code which handles that case.
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?