rendering tweaks cont.
authorsheepluva
Tue, 24 Mar 2015 16:52:35 +0100
changeset 10870 5efea5942475
parent 10869 f23763bbac1b
child 10871 570af168cc74
rendering tweaks cont.
hedgewars/uRender.pas
hedgewars/uStore.pas
hedgewars/uWorld.pas
--- a/hedgewars/uRender.pas	Tue Mar 24 12:48:55 2015 +0100
+++ b/hedgewars/uRender.pas	Tue Mar 24 16:52:35 2015 +0100
@@ -83,9 +83,6 @@
 
 // TODO everything below this should not need a public interface
 
-procedure CreateFramebuffer(var frame, depth, tex: GLuint);
-procedure DeleteFramebuffer(var frame, depth, tex: GLuint);
-
 procedure EnableTexture(enable:Boolean);
 
 procedure SetTexCoordPointer(p: Pointer;n: Integer); inline;
@@ -134,6 +131,9 @@
     texLRDtb, texLvb, texRvb: array [0..3] of TVertex2f;
 {$ENDIF}
 
+procedure CreateFramebuffer(var frame, depth, tex: GLuint); forward;
+procedure DeleteFramebuffer(var frame, depth, tex: GLuint); forward;
+
 function isAreaOffscreen(X, Y, Width, Height: LongInt): boolean; inline;
 begin
     isAreaOffscreen:= (isDxAreaOffscreen(X, Width) <> 0) or (isDyAreaOffscreen(Y, Height) <> 0);
--- a/hedgewars/uStore.pas	Tue Mar 24 12:48:55 2015 +0100
+++ b/hedgewars/uStore.pas	Tue Mar 24 16:52:35 2015 +0100
@@ -1023,7 +1023,7 @@
     glutHideWindow();
     // we do not need to set this callback, but it is required for GLUT3 compat
     glutDisplayFunc(@SwapBuffers);
-    RenderSetup();
+    RendererSetup();
 end;
 {$ENDIF} // SDL2
 {$ENDIF} // USE_VIDEO_RECORDING
--- a/hedgewars/uWorld.pas	Tue Mar 24 12:48:55 2015 +0100
+++ b/hedgewars/uWorld.pas	Tue Mar 24 16:52:35 2015 +0100
@@ -17,7 +17,7 @@
  *)
 
 {$INCLUDE "options.inc"}
-{$IF GLunit = GL}{$DEFINE GLunit:=GL,GLext}{$ENDIF}
+{$IF GLunit = GL}{$DEFINE GLunit:=GL}{$ENDIF}
 
 unit uWorld;
 interface