[virglrenderer-devel] [PATCH] vrend: handle GL_INVALID_ENUM when trying format.

Dave Airlie airlied at gmail.com
Mon May 21 04:23:26 UTC 2018


On 19 May 2018 at 02:19, Lepton Wu <lepton at chromium.org> wrote:
> It seems under some GPU/profile, GL_INVALID_ENUM is generated
> instead of GL_INVALID_VALUE for unsupported internal format.
> This is even conflicted in reference documents. Just handle
> them at same time.
>
> From:
> https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml
>
> GL_INVALID_ENUM is generated if internalFormat is not one of the accepted
> resolution and format symbolic constants.
>
> From:
> https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexImage2D.xhtml
>
> GL_INVALID_VALUE is generated if internalFormat is not one of the accepted
> resolution and format symbolic constants.
>
> Signed-off-by: Lepton Wu <lepton at chromium.org>

Seems fine,

Reviewed-by: Dave Airlie <airlied at redhat.com>

(and pushed).


More information about the virglrenderer-devel mailing list