hedgewars/uRenderUtils.pas
changeset 7291 ad4b6c2b09e8
parent 7069 bcf9d8e64e92
child 11317 62287d4044e7
--- a/hedgewars/uRenderUtils.pas	Mon Jun 25 10:44:27 2012 +0200
+++ b/hedgewars/uRenderUtils.pas	Mon Jun 25 11:47:40 2012 +0200
@@ -272,9 +272,7 @@
 
     TryDo(SDL_SetColorKey(finalSurface, SDL_SRCCOLORKEY, 0) = 0, errmsgTransparentSet, true);
 
-    RenderStringTexLim:= Surface2Tex(finalSurface, false);
-
-    SDL_FreeSurface(finalSurface);
+    RenderStringTexLim:= Surface2Atlas(finalSurface, false);
 end;
 
 
@@ -459,10 +457,9 @@
         inc(pos);
         end;
 
-    RenderSpeechBubbleTex:= Surface2Tex(finalSurface, true);
+    RenderSpeechBubbleTex:= Surface2Atlas(finalSurface, true);
 
     SDL_FreeSurface(rotatedEdge);
-    SDL_FreeSurface(finalSurface);
 end;
 
 end.