summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGLSL/Linker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGLSL/Linker.cpp')
-rw-r--r--Userland/Libraries/LibGLSL/Linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGLSL/Linker.cpp b/Userland/Libraries/LibGLSL/Linker.cpp
index 2cc1ba83ee..50e7790a89 100644
--- a/Userland/Libraries/LibGLSL/Linker.cpp
+++ b/Userland/Libraries/LibGLSL/Linker.cpp
@@ -26,7 +26,7 @@ ErrorOr<NonnullOwnPtr<LinkedShader>> Linker::link(Vector<ObjectFile const*> cons
};
TRY(shader.instructions.try_append(instruction));
- return adopt_own(*new LinkedShader(shader));
+ return try_make<LinkedShader>(shader);
}
}