Fix framebuffer resizing for rendering on 1.13+

This commit is contained in:
Jonas Herzig
2019-06-28 17:23:07 +02:00
parent fcb8cc329b
commit 801f0871d5
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ public abstract class OpenGlFrameCapturer<F extends Frame, D extends CaptureData
//#if MC>=11300 //#if MC>=11300
GlFramebuffer fb = mc.getFramebuffer(); GlFramebuffer fb = mc.getFramebuffer();
if (fb.viewWidth != width || fb.viewHeight != height) { if (fb.viewWidth != width || fb.viewHeight != height) {
fb.initFbo(width, height fb.resize(width, height
//#if MC>=11400 //#if MC>=11400
, false , false
//#endif //#endif

View File

@@ -350,7 +350,7 @@ public class VideoRenderer implements RenderInfo {
// Finally, resize the Minecraft framebuffer to the actual width/height of the window // Finally, resize the Minecraft framebuffer to the actual width/height of the window
//#if MC>=11300 //#if MC>=11300
mc.getFramebuffer().initFbo(displayWidth, displayHeight mc.getFramebuffer().resize(displayWidth, displayHeight
//#if MC>=11400 //#if MC>=11400
, false , false
//#endif //#endif