diff options
author | volodymyr.o <volodymyr.obozhyn@globallogic.com> | 2023-02-27 15:19:30 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-03-20 06:39:57 +0000 |
commit | 47e7b49c61ed72141b20ee9061a320bd259b3e0d (patch) | |
tree | 103865c72e40acb02c849304afd147ee89eda5f4 /src/mesa/main/uniform_query.cpp | |
parent | 5e039dbf8ecf8a4dae4b40e4fb5ac272c7349554 (diff) |
mesa ctx->API --> _mesa_is_foo(ctx)
replaces direct API checks with _mesa_is_...() checks
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8340
Signed-off-by: Volodymyr Obohzyn volodymyr.obozhyn@globallogic.com
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21556>
Diffstat (limited to 'src/mesa/main/uniform_query.cpp')
-rw-r--r-- | src/mesa/main/uniform_query.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 70bf6816fca..ebf1f0db984 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -1854,7 +1854,7 @@ _mesa_uniform_matrix(GLint location, GLsizei count, * http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml */ if (transpose) { - if (ctx->API == API_OPENGLES2 && ctx->Version < 30) { + if (_mesa_is_gles2(ctx) && ctx->Version < 30) { _mesa_error(ctx, GL_INVALID_VALUE, "glUniformMatrix(matrix transpose is not GL_FALSE)"); return; |