Hi,
The use of FBOs on GLES 2.0 results in an attempt to call glDrawBuffers() in
FrameBufferObject::apply(State &state, BindTarget target). But since there is
no support for glDrawBuffers in GLES 2.0, an annoying warning gets printed
every frame in my app.
We need to check for the driver version differently on GLES and GL.
If there was a single define that helped you differentiate between the two we
could have written something like:
#ifdef GL
float minVersion = 2.0F;
#else
float minVersion = 3.0F; //GLES 3.0 supports glDrawBuffers
#endif
If(gl2e->getGlVersion() >= minVersion)
{
glDrawBuffers()
}
How do we write an elegant check?
Thank you!
Cheers,
Anish
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=55350#55350
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org