[Mesa-dev] [PATCH v2 05/29] mesa/main: clean up ES2_compatibility check

Emil Velikov emil.l.velikov at gmail.com
Mon Dec 3 17:24:01 UTC 2018


Hi Erik,

On Fri, 23 Nov 2018 at 10:54, Erik Faye-Lund
<erik.faye-lund at collabora.com> wrote:
>
> This makes the logic a little bit easier to follow; this is *either*
> about ES2 compatibility *or* about gles. GL_RGB565 was added already in
> OpenGL ES 1.0.
>
AFAICT GL_RGB565 was introduced in OpenGLES1 with GL_OES_framebuffer_object.

Every driver supports that extension, so
_mesa_has_OES_framebuffer_object is an overkill.
Esp. since src/mesa/main/fbobject.c doesn't do it - although it that
one could use _mesa_has_ARB_ES2_compatibility().

fbobject.c could be tweaked another day.

-Emil


More information about the mesa-dev mailing list