diff options
author | Chad Versace <[email protected]> | 2012-11-09 14:06:40 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2012-11-19 08:17:32 -0800 |
commit | 243cf7a924eaef78ce0d5150747fae6c3c4e6974 (patch) | |
tree | dc399fb5deed8146580785c7cfb00fc6b9d35dfe /src/mesa/main/rastpos.c | |
parent | ddb901fbf4489ffcd85d3320f23913eb1d4fbdfe (diff) |
i965: Validate requested GLES context version in brwCreateContext
For GLES1 and GLES2, brwCreateContext neglected to validate the requested
context version received from the DRI layer. If DRI requested an OpenGL
ES2 context with version 3.9, we provided it one.
Before this fix, the switch statement that validated the requested GL
context flavor was an ugly #ifdef copy-paste mess. Instead of reproducing
the copy-past-mess for GLES1 and GLES2, I first refactored it. Now the
switch statement is readable.
Reviewed-by: Kenneth Graunke <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/main/rastpos.c')
0 files changed, 0 insertions, 0 deletions