mesa/main: properly check for EXT_memory_object_fd
This extension isn't supported in GLES 1.x, so let's tighten the check. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349>
This commit is contained in:
committed by
Marge Bot
parent
0284e7fedb
commit
d90c81740d
@@ -1052,7 +1052,7 @@ _mesa_ImportMemoryFdEXT(GLuint memory,
|
||||
|
||||
const char *func = "glImportMemoryFdEXT";
|
||||
|
||||
if (!ctx->Extensions.EXT_memory_object_fd) {
|
||||
if (!_mesa_has_EXT_memory_object_fd(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user