diff options
author | Brian Paul <[email protected]> | 2018-08-02 09:32:58 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-08-02 13:20:00 -0600 |
commit | 977638006b8ed280969964e5d53728912c690e32 (patch) | |
tree | b59800ab65bdbd89b2517c134fc307a3d7013e8d | |
parent | 2d4d139877c0aa8efc323be6d9c37c846c8b193a (diff) |
mesa: add switch case for GL 2.0 in _mesa_compute_version()
Previously, I added a switch case for GL 2.1 (ed7a0770b881791dd697f3).
I don't know of any driver which only supports GL 2.0, but adding
this switch case avoids a failure if the app queries
GL_SHADING_LANGUAGE_VERSION.
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/mesa/main/version.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 2c5bd777877..9df8c11c740 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -617,6 +617,8 @@ _mesa_compute_version(struct gl_context *ctx) */ if (_mesa_is_desktop_gl(ctx)) { switch (ctx->Version) { + case 20: + /* fall-through, GLSL 1.20 is the minimum we support */ case 21: ctx->Const.GLSLVersion = 120; break; |