--- 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.