diff --git a/src/mesa/main/externalobjects.c b/src/mesa/main/externalobjects.c index d406baad1c4..f865471cafb 100644 --- a/src/mesa/main/externalobjects.c +++ b/src/mesa/main/externalobjects.c @@ -1080,7 +1080,7 @@ _mesa_ImportMemoryWin32HandleEXT(GLuint memory, const char *func = "glImportMemoryWin32HandleEXT"; - if (!ctx->Extensions.EXT_memory_object_win32) { + if (!_mesa_has_EXT_memory_object_win32(ctx)) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func); return; } @@ -1111,7 +1111,7 @@ _mesa_ImportMemoryWin32NameEXT(GLuint memory, const char *func = "glImportMemoryWin32NameEXT"; - if (!ctx->Extensions.EXT_memory_object_win32) { + if (!_mesa_has_EXT_memory_object_win32(ctx)) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func); return; } diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 451a5e8da34..689cb1bebd8 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -2929,7 +2929,7 @@ find_value_indexed(const char *func, GLenum pname, GLuint index, union value *v) return TYPE_INT_4; /* GL_EXT_memory_object_win32 */ case GL_DEVICE_LUID_EXT: - if (!ctx->Extensions.EXT_memory_object_win32 && !ctx->Extensions.EXT_semaphore_win32) + if (!_mesa_has_EXT_memory_object_win32(ctx) && !ctx->Extensions.EXT_semaphore_win32) goto invalid_enum; if (index >= 1) goto invalid_value;