summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/vtxfmt.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2015-05-20 20:13:12 -0700
committerIan Romanick <ian.d.romanick@intel.com>2015-05-28 16:56:32 -0700
commita6fa74e6bb65f852ad1608f43dd0731e854ea42f (patch)
treef6fe8af4f4458c99eec115ea2f59fba6c0a39d74 /src/mesa/main/vtxfmt.c
parent4e5efa9e7ddb6d5273996cf9b09677d918759d17 (diff)
downloadexternal_mesa3d-a6fa74e6bb65f852ad1608f43dd0731e854ea42f.zip
external_mesa3d-a6fa74e6bb65f852ad1608f43dd0731e854ea42f.tar.gz
external_mesa3d-a6fa74e6bb65f852ad1608f43dd0731e854ea42f.tar.bz2
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>
Diffstat (limited to 'src/mesa/main/vtxfmt.c')
-rw-r--r--src/mesa/main/vtxfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/vtxfmt.c b/src/mesa/main/vtxfmt.c
index d7ef7e2..81bf4c5 100644
--- a/src/mesa/main/vtxfmt.c
+++ b/src/mesa/main/vtxfmt.c
@@ -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);