# HG changeset patch
# User Stepan777 <stepik-777@mail.ru>
# Date 1341739746 -14400
# Node ID 911b53e8c00a535da52d5e23d16df2a94c3c3f0a
# Parent  46921fbe76d35f1197a5edf1bc86532d6d0e27d3
First try to use framebuffer, instead of auxilary buffer.
On my computer this fixes large resolutions (e.g. 1920x1080)

diff -r 46921fbe76d3 -r 911b53e8c00a hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Sun Jul 08 13:21:12 2012 +0400
+++ b/hedgewars/uStore.pas	Sun Jul 08 13:29:06 2012 +0400
@@ -719,18 +719,18 @@
     defaultFrame:= 0;
 {$IFDEF USE_VIDEO_RECORDING}
     if GameType = gmtRecord then
-    begin  
-        if AuxBufNum > 0 then
+    begin
+        if glLoadExtension('GL_EXT_framebuffer_object') then
+        begin
+            CreateFramebuffer(defaultFrame, depthv, texv);
+            glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, defaultFrame);
+            AddFileLog('Using framebuffer for video recording.');
+        end
+        else if AuxBufNum > 0 then
         begin
             glDrawBuffer(GL_AUX0);
             glReadBuffer(GL_AUX0);
             AddFileLog('Using auxilary buffer for video recording.');
-        end 
-        else if glLoadExtension('GL_EXT_framebuffer_object') then
-        begin
-            CreateFramebuffer(defaultFrame, depthv, texv);
-            glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, defaultFrame);
-            AddFileLog('Using framebuffer for video recording.');
         end
         else
         begin