[Mesa-dev] [PATCH 20/21] mesa: Remove vertex program extension enable flags

Brian Paul brian.e.paul at gmail.com
Sat Aug 27 06:47:10 PDT 2011


On Sat, Aug 27, 2011 at 1:57 AM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> The following extensions are always enabled, and drivers do not have
> to option to disable them:
>
>    GL_ARB_vertex_program
>    GL_EXT_gpu_program_parameters
>    GL_NV_vertex_program

It seems that the assumption here is that we'll support these
extensions in all drivers for the foreseeable future.

I'm thinking ahead a bit to OpenGL 3.2 and core profiles.  When we get
to 3.2 support, I'd like to support core profile contexts which won't
have these legacy extensions.  So when someone creates a 3.2 core
profile context and accidentally does
glEnable(GL_VERTEX_PROGRAM_TWO_SIDE_ARB) we should catch that and
generate an error.

If we're removing the internal flags and checks for these extensions,
how would we do that?

-Brian


More information about the mesa-dev mailing list