summaryrefslogtreecommitdiff
path: root/src/mesa/main/samplerobj.c
diff options
context:
space:
mode:
authorEric Engestrom <eric@igalia.com>2023-02-15 19:52:25 +0000
committerMarge Bot <emma+marge@anholt.net>2023-02-17 23:53:30 +0000
commitae66411f2677a9adbedc25e4b112a120aa175d19 (patch)
treede653ade61135f6215b0bc84c301d549e27c6149 /src/mesa/main/samplerobj.c
parente8e17641c10e095d1e9123ad8fb1ca0f6f4d93fe (diff)
mesa: make use of the new _mesa_is_desktop_gl_compat() helper
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21343>
Diffstat (limited to 'src/mesa/main/samplerobj.c')
-rw-r--r--src/mesa/main/samplerobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c
index 1cf53608d11..b0010893dd7 100644
--- a/src/mesa/main/samplerobj.c
+++ b/src/mesa/main/samplerobj.c
@@ -501,7 +501,7 @@ validate_texture_wrap_mode(struct gl_context *ctx, GLenum wrap)
* texture parameters TEXTURE_WRAP_S, TEXTURE_WRAP_T, or
* TEXTURE_WRAP_R.
*/
- return ctx->API == API_OPENGL_COMPAT;
+ return _mesa_is_desktop_gl_compat(ctx);
case GL_CLAMP_TO_EDGE:
case GL_REPEAT:
case GL_MIRRORED_REPEAT: