Error creating FrameBuffer in latest version
See original GitHub issueIssue details
The creation of a Framebuffer is failing in v1.9.14 in the lwjgl 2 backend. The same code works well in v1.9.13.
Digging in the changes, I think that error is produced by the next commit created by @mgsx-dev
https://github.com/libgdx/libgdx/commit/1cfb4a8b5b6fdd8275ef7962a107f6b81166865b
Reproduction steps/code
Try to create a Framebuffer:
FrameBuffer fbo = new FrameBuffer(Format.RGB565, w, h, false);
Version of LibGDX and/or relevant dependencies
This only happens in v1.9.14.
Stacktrace
Exception in thread "LWJGL Application" org.lwjgl.opengl.OpenGLException: Cannot use offsets when Pixel Unpack Buffer Object is disabled
at org.lwjgl.opengl.GLChecks.ensureUnpackPBOenabled(GLChecks.java:125)
at org.lwjgl.opengl.GL11.glTexImage2D(GL11.java:2899)
at com.badlogic.gdx.backends.lwjgl.LwjglGL20.glTexImage2D(LwjglGL20.java:598)
at com.badlogic.gdx.graphics.glutils.GLOnlyTextureData.consumeCustomData(GLOnlyTextureData.java:78)
at com.badlogic.gdx.graphics.GLTexture.uploadImageData(GLTexture.java:270)
at com.badlogic.gdx.graphics.GLTexture.uploadImageData(GLTexture.java:257)
at com.badlogic.gdx.graphics.Texture.load(Texture.java:159)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:147)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:142)
at com.badlogic.gdx.graphics.glutils.FrameBuffer.createTexture(FrameBuffer.java:81)
at com.badlogic.gdx.graphics.glutils.FrameBuffer.createTexture(FrameBuffer.java:42)
at com.badlogic.gdx.graphics.glutils.GLFrameBuffer.build(GLFrameBuffer.java:174)
at com.badlogic.gdx.graphics.glutils.FrameBuffer.<init>(FrameBuffer.java:75)
at com.badlogic.gdx.graphics.glutils.FrameBuffer.<init>(FrameBuffer.java:57)
at com.bladecoder.engine.model.World.takeScreenshot(World.java:824)```
Please select the affected platforms
- Android
- iOS
- HTML/GWT
- Windows
- Linux
- MacOS
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Error when create FrameBuffer - opengl - Stack Overflow
This implies to me that you are either using OpenGL ES or the EXT FBO extension (e.g. not OpenGL 3.0). Please include what...
Read more >Error 0x1400006: Invalid video framebuffer parameters" at ...
To solve the issue without upgrading to the new version, use one of the methods described below. Method 1. Update EFI loader: Launch...
Read more >Unusual GL_FRAMEBUFFER INCOMPLETE ATTACHMENT ...
Hi All, I have built a LINUX based UBUNTU snap app using BASE20 (i.e. Ubuntu 20.04) as a target OS, and it is...
Read more >Framebuffer Object - OpenGL Wiki
A renderbuffer is an object that contains a single image. Renderbuffers cannot be accessed by Shaders in any way. The only way to...
Read more >glium::framebuffer - Rust - Docs.rs
let framebuffer = glium::framebuffer::SimpleFrameBuffer::new(&display, &texture); // framebuffer.draw(. ... Error while creating a render buffer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just tested this with 1.10.0, as you said, @Xjidea , by adding
FrameBuffer fbo = new FrameBuffer(Pixmap.Format.RGBA8888, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), false);
to the start of my create() method. There is no difference with that line in or out; both work fine. This is true for LWJGL 2 and 3. Check your dependencies for anything that might be pulling 1.9.14, which is the release that has the bug, and don’t use snapshot releases after the following stable release is out, because the snapshot could cease to exist anytime. This bug is fixed, so any other issues are related to something else in your code, and should be discussed further in the Discord. Be prepared to paste relevant code, answer questions, etc. if you want your problem solved.This has been fixed in the latest snapshot.