First try to use framebuffer, instead of auxilary buffer.
authorStepan777 <stepik-777@mail.ru>
Sun, 08 Jul 2012 13:29:06 +0400
changeset 7371 911b53e8c00a
parent 7369 46921fbe76d3
child 7373 d5ec4e4eb2d5
First try to use framebuffer, instead of auxilary buffer. On my computer this fixes large resolutions (e.g. 1920x1080)
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