X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fimage_input.cpp;h=afb87c57a6aa32577ee9473f9c87be89c6b70058;hb=adc0df09f7a9dc88a3c0dbad47a21a805e728862;hp=6a2c5abc846b913123ef00647373bd6267ee1d4b;hpb=337e2d06624b4b46eb2e7e5365e2ece219f9f100;p=nageru diff --git a/nageru/image_input.cpp b/nageru/image_input.cpp index 6a2c5ab..afb87c5 100644 --- a/nageru/image_input.cpp +++ b/nageru/image_input.cpp @@ -228,7 +228,7 @@ shared_ptr ImageInput::load_image_raw(const string &pat glBindTexture(GL_TEXTURE_2D, 0); check_error(); - shared_ptr image(new Image{unsigned(frame->width), unsigned(frame->height), RefCountedTexture(new GLuint(tex)), last_modified}); + shared_ptr image(new Image{unsigned(frame->width), unsigned(frame->height), UniqueTexture(new GLuint(tex)), last_modified}); return image; }