Fix framebuffer resizing for rendering on 1.13+
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user