diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-08-23 14:33:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-27 12:28:05 +0200 |
commit | 73f7f4656cce635692ea37b0421556cdd7200306 (patch) | |
tree | 902715fac5a72c73027de3392c5d6eb36d5d399a | |
parent | 3279c25553352872e97f8789bcbfc5a7f0b778a1 (diff) | |
download | serenity-73f7f4656cce635692ea37b0421556cdd7200306.zip |
LibSoftGPU: Make `ownership_token` type in `Image` consistent
This is now the same as defined in `GPU::Image`.
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Image.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Image.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Image.cpp b/Userland/Libraries/LibSoftGPU/Image.cpp index 87bfc329a3..1a1189a051 100644 --- a/Userland/Libraries/LibSoftGPU/Image.cpp +++ b/Userland/Libraries/LibSoftGPU/Image.cpp @@ -122,7 +122,7 @@ static constexpr void pack_color(FloatVector4 const& color, void* ptr, GPU::Imag } } -Image::Image(void* const ownership_token, unsigned width, unsigned height, unsigned depth, unsigned max_levels, unsigned layers) +Image::Image(void const* ownership_token, unsigned width, unsigned height, unsigned depth, unsigned max_levels, unsigned layers) : GPU::Image(ownership_token) , m_num_layers(layers) , m_mipmap_buffers(FixedArray<RefPtr<Typed3DBuffer<FloatVector4>>>::must_create_but_fixme_should_propagate_errors(layers * max_levels)) diff --git a/Userland/Libraries/LibSoftGPU/Image.h b/Userland/Libraries/LibSoftGPU/Image.h index 243cc20715..841e9dc71c 100644 --- a/Userland/Libraries/LibSoftGPU/Image.h +++ b/Userland/Libraries/LibSoftGPU/Image.h @@ -19,7 +19,7 @@ namespace SoftGPU { class Image final : public GPU::Image { public: - Image(void* const ownership_token, unsigned width, unsigned height, unsigned depth, unsigned max_levels, unsigned layers); + Image(void const* ownership_token, unsigned width, unsigned height, unsigned depth, unsigned max_levels, unsigned layers); unsigned level_width(unsigned level) const { return m_mipmap_buffers[level]->width(); } unsigned level_height(unsigned level) const { return m_mipmap_buffers[level]->height(); } |