ソースを参照

LibSoftGPU: Make `ownership_token` type in `Image` consistent

This is now the same as defined in `GPU::Image`.
Jelle Raaijmakers 2 年 前
コミット
73f7f4656c

+ 1 - 1
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))

+ 1 - 1
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(); }