diff --git a/src/mesa/main/externalobjects.c b/src/mesa/main/externalobjects.c index fd593fb6d7e..a300e768d86 100644 --- a/src/mesa/main/externalobjects.c +++ b/src/mesa/main/externalobjects.c @@ -1177,7 +1177,7 @@ _mesa_ImportSemaphoreWin32HandleEXT(GLuint semaphore, const char *func = "glImportSemaphoreWin32HandleEXT"; - if (!ctx->Extensions.EXT_semaphore_win32) { + if (!_mesa_has_EXT_semaphore_win32(ctx)) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func); return; } @@ -1221,7 +1221,7 @@ _mesa_ImportSemaphoreWin32NameEXT(GLuint semaphore, const char *func = "glImportSemaphoreWin32HandleEXT"; - if (!ctx->Extensions.EXT_semaphore_win32) { + if (!_mesa_has_EXT_semaphore_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 5e203810fd3..fe6b6019aff 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 (!_mesa_has_EXT_memory_object_win32(ctx) && !ctx->Extensions.EXT_semaphore_win32) + if (!_mesa_has_EXT_memory_object_win32(ctx) && !_mesa_has_EXT_semaphore_win32(ctx)) goto invalid_enum; if (index >= 1) goto invalid_value;