Fix const-correctness bugs in uniq_ptr and code that uses it

This commit is contained in:
Cameron Gutman 2023-05-11 01:17:54 -05:00
commit fabadaad2a
4 changed files with 8 additions and 7 deletions

View file

@ -725,7 +725,7 @@ namespace platf::dxgi {
struct encoder_img_ctx_t {
// Used to determine if the underlying texture changes.
// Not safe for actual use by the encoder!
texture2d_t::pointer capture_texture_p;
texture2d_t::const_pointer capture_texture_p;
texture2d_t encoder_texture;
shader_res_t encoder_input_res;