]> git.sesse.net Git - nageru/blobdiff - nageru/ref_counted_texture.h
Move RefCountedTexture to shared.
[nageru] / nageru / ref_counted_texture.h
diff --git a/nageru/ref_counted_texture.h b/nageru/ref_counted_texture.h
deleted file mode 100644 (file)
index 1a94476..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef _UNIQUE_TEXTURE_H
-#define _UNIQUE_TEXTURE_H 1
-
-// A wrapper around an OpenGL texture that is automatically deleted.
-// Used only by ImageInput.
-
-#include <epoxy/gl.h>
-#include <memory>
-
-struct TextureDeleter {
-       void operator() (GLuint *tex)
-       {
-               glDeleteTextures(1, tex);
-               delete tex;
-       }
-};
-
-typedef std::unique_ptr<GLuint, TextureDeleter> RefCountedTexture;
-
-#endif  // !defined(_REF_COUNTED_TEXTURE)