mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
mesa: Don't install glVertexAttribL* functions in compatibility profile
GL_ARB_vertex_attrib_64bit is exclusive to core profile, and none of the
other functions added by the extension are advertised in other profiles.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.6" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit a6fa74e6bb)
This commit is contained in:
parent
384ee736e7
commit
964d358bc1
2 changed files with 3 additions and 1 deletions
|
|
@ -1772,7 +1772,9 @@ _mesa_loopback_init_api_table(const struct gl_context *ctx,
|
|||
SET_VertexAttribI4sv(dest, _mesa_VertexAttribI4sv);
|
||||
SET_VertexAttribI4ubv(dest, _mesa_VertexAttribI4ubv);
|
||||
SET_VertexAttribI4usv(dest, _mesa_VertexAttribI4usv);
|
||||
}
|
||||
|
||||
if (ctx->API == API_OPENGL_CORE) {
|
||||
/* GL 4.1 / GL_ARB_vertex_attrib_64bit */
|
||||
SET_VertexAttribL1d(dest, _mesa_VertexAttribL1d);
|
||||
SET_VertexAttribL2d(dest, _mesa_VertexAttribL2d);
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ install_vtxfmt(struct gl_context *ctx, struct _glapi_table *tab,
|
|||
SET_VertexAttribP4uiv(tab, vfmt->VertexAttribP4uiv);
|
||||
}
|
||||
|
||||
if (_mesa_is_desktop_gl(ctx)) {
|
||||
if (ctx->API == API_OPENGL_CORE) {
|
||||
SET_VertexAttribL1d(tab, vfmt->VertexAttribL1d);
|
||||
SET_VertexAttribL2d(tab, vfmt->VertexAttribL2d);
|
||||
SET_VertexAttribL3d(tab, vfmt->VertexAttribL3d);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue