_mesa_debug(ctx, "%s(%d, %p)", func, n, memoryObjects);
if (!ctx->Extensions.EXT_memory_object) {
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "glCreateMemoryObjectsEXT(unsupported)");
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
return;
}
GET_CURRENT_CONTEXT(ctx);
struct gl_memory_object *memObj;
+ const char *func = "glMemoryObjectParameterivEXT";
+
if (!ctx->Extensions.EXT_memory_object) {
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "glMemoryObjectParameterivEXT(unsupported)");
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
return;
}
return;
if (memObj->Immutable) {
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "glMemoryObjectParameterivEXT(memoryObject is immutable");
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s(memoryObject is immutable", func);
return;
}
return;
invalid_pname:
- _mesa_error(ctx, GL_INVALID_ENUM,
- "glMemoryObjectParameterivEXT(pname=0x%x)", pname);
+ _mesa_error(ctx, GL_INVALID_ENUM, "%s(pname=0x%x)", func, pname);
}
void GLAPIENTRY
GET_CURRENT_CONTEXT(ctx);
struct gl_memory_object *memObj;
+ const char *func = "glMemoryObjectParameterivEXT";
+
if (!ctx->Extensions.EXT_memory_object) {
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "glGetMemoryObjectParameterivEXT(unsupported)");
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
return;
}
return;
invalid_pname:
- _mesa_error(ctx, GL_INVALID_ENUM,
- "glGetMemoryObjectParameterivEXT(pname=0x%x)", pname);
+ _mesa_error(ctx, GL_INVALID_ENUM, "%s(pname=0x%x)", func, pname);
}
static struct gl_memory_object *
{
GET_CURRENT_CONTEXT(ctx);
+ const char *func = "glImportMemoryFdEXT";
+
if (!ctx->Extensions.EXT_memory_object_fd) {
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "glImportMemoryFdEXT(unsupported)");
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
return;
}
if (handleType != GL_HANDLE_TYPE_OPAQUE_FD_EXT) {
- _mesa_error(ctx, GL_INVALID_VALUE, "glImportMemoryFdEXT(handleType=%u)",
- handleType);
+ _mesa_error(ctx, GL_INVALID_VALUE, "%s(handleType=%u)", func, handleType);
return;
}