]> git.sesse.net Git - nageru/blobdiff - nageru/image_input.cpp
Change Futatabi frames to be cached as textures instead of in system memory.
[nageru] / nageru / image_input.cpp
index 6a2c5abc846b913123ef00647373bd6267ee1d4b..afb87c57a6aa32577ee9473f9c87be89c6b70058 100644 (file)
@@ -228,7 +228,7 @@ shared_ptr<const ImageInput::Image> ImageInput::load_image_raw(const string &pat
        glBindTexture(GL_TEXTURE_2D, 0);
        check_error();
 
-       shared_ptr<Image> image(new Image{unsigned(frame->width), unsigned(frame->height), RefCountedTexture(new GLuint(tex)), last_modified});
+       shared_ptr<Image> image(new Image{unsigned(frame->width), unsigned(frame->height), UniqueTexture(new GLuint(tex)), last_modified});
        return image;
 }