Use a new Texture for each Surface, this should fix blending artifacts caused by...
[supertux.git] / src / video / sdl_surface_ptr.hpp
index 2fffc95..4311e70 100644 (file)
@@ -36,6 +36,11 @@ public:
     SDL_FreeSurface(m_surface);
   }
 
+  SDL_Surface* operator->()
+  {
+    return m_surface;
+  }
+
   SDL_Surface* get()
   {
     return m_surface;