summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/SoftwareRasterizer.cpp
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2021-05-29 23:34:40 +0200
committerLinus Groh <mail@linusgroh.de>2021-05-30 00:32:37 +0100
commitfde0045ebe7ac5aa1698870002ae58edac3c4f85 (patch)
tree093e1debdfe05e5e4e4cdabbd6d174d0c16401ec /Userland/Libraries/LibGL/SoftwareRasterizer.cpp
parent09233b9e4139baedb516659fa30876edcb7bf436 (diff)
downloadserenity-fde0045ebe7ac5aa1698870002ae58edac3c4f85.zip
LibGL: Introduce Texture base class for all texture types
Diffstat (limited to 'Userland/Libraries/LibGL/SoftwareRasterizer.cpp')
-rw-r--r--Userland/Libraries/LibGL/SoftwareRasterizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareRasterizer.cpp b/Userland/Libraries/LibGL/SoftwareRasterizer.cpp
index ac6912ee1d..3f13938288 100644
--- a/Userland/Libraries/LibGL/SoftwareRasterizer.cpp
+++ b/Userland/Libraries/LibGL/SoftwareRasterizer.cpp
@@ -414,7 +414,7 @@ SoftwareRasterizer::SoftwareRasterizer(const Gfx::IntSize& min_size)
{
}
-void SoftwareRasterizer::submit_triangle(const GLTriangle& triangle, const Texture& texture)
+void SoftwareRasterizer::submit_triangle(const GLTriangle& triangle, const Texture2D& texture)
{
rasterize_triangle(m_options, *m_render_target, *m_depth_buffer, triangle, [&texture](const FloatVector2& uv, const FloatVector4& color) -> FloatVector4 {
// TODO: We'd do some kind of multitexturing/blending here