Question

In OpenGL ES 3.0 spec we can read:

§ 4.4.5

When the relevant framebuffer binding is non-zero, if the currently bound framebuffer object is not framebuffer complete, then the values of the state variables listed in table 6.34 are undefined.

Table 6.34 contains the x_BITS constant. That means we can create a texture or renderbuffer that's not color-renderable, but we can't verify that it has proper size.

Is there any way around this, or is my idea completely skewed and this information is irrelevant (which would render the question incorrect)?

Was it helpful?

Solution

You can query a bound render buffer properties using GetRenderbufferParameteriv (6.1.14 Renderbuffer Object Queries). For example with RENDERBUFFER_- INTERNAL_FORMAT.

The problem is that unless the framebuffer is complete, it is not well formed thus the specification just states that values returned are undefined. That's doesn't mean you can query for one of the renderbuffers attached and get the desired information.

Not sure if this is what you were looking for.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top