Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8295417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:34:47+00:00 2026-06-08T14:34:47+00:00

I am using Java wrapper for OpenGL (LWJGL)I am getting GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT status if I

  • 0

I am using Java wrapper for OpenGL (LWJGL)I am getting

 GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT

status if I set FBO texture attachment format to be GL_RGBA16F.In fact Anything but GL_RGBA causes this error.
Here is my FBO texture setup:

glBindTexture(GL_TEXTURE_2D, texId);

glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16F, _width, _height, 0, GL_RGBA, GL_FLOAT, (ByteBuffer) null);

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);

glBindFramebuffer(GL_FRAMEBUFFER, _frameBuffer);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texId, 0);
glDrawBuffers(GL_COLOR_ATTACHMENT0);

And here is the Depth attachment:

_depthBuffer = glGenRenderbuffers();
glBindRenderbuffer(GL_RENDERBUFFER, _depthBuffer);
glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, _width, _height);
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, _depthBuffer);

UPDATE:

In fact ,if I swap places of internal format and format like this:
GL_RGBA,GL_RGBA16F
Than the FBO completes ok.But in the examples that I have seen the usage is that GL_RGBA16Fgoes first.

UPDATE1:
So far got no answer from anybody on the LWJGL forum.Also submitted this issue as a bug but also got no answer from the dev team.If anybody else could test an FBO with texture attachment that uses float formats and report if the completeness is achieved that can be great.Currently I don’t think there is an error in my code.Also I have tested it on 2 machines and got the same result.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:34:49+00:00Added an answer on June 8, 2026 at 2:34 pm

    That was my mistake.I put GL_RGBA16F mistakenly as internal format parameter while passing GL_RGBA as the format.The issue solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to develop an app using Java wrapper for OpenGL LWJGL .The app
I need to draw 3d projections and i am using opengl wrapper for JAVA.
I'm using a Java wrapper for accessing Sqlite but I assume this is a
I'm using a Java wrapper for SQLite called SQLiteJDBC - this may have some
I have got a project that is using jni to connect java wrapper and
I'm currently implementing a .NET wrapper for a Java library by using JNI to
I'm using a Java wrapper for a native shared library on Unix ( JRI
I'm using SWIG to make a Java wrapper of a C++ library (about Json
I'm using java service wrapper in a project and want to change wrapper.logfile.maxsize property
I am using the Twilio java wrapper provided on the website and started making

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.