Skip to content
Snippets Groups Projects
Commit 963311b7 authored by Nicolai Hähnle's avatar Nicolai Hähnle
Browse files

mesa/main: fix version/extension checks in _mesa_ClampColor


Add a proper check for feature support, and raise an invalid enum for
GL_CLAMP_VERTEX/FRAGMENT_COLOR unconditionally in core profiles, since
those enums were explicitly removed after the extension was promoted
to core functionality (not in the profile sense) with OpenGL 3.0.

This matches the behavior of the AMD closed source driver and fixes
GL45-CTS.gtf30.GL3Tests.half_float.half_float_textures.

Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
parent e1ea70d9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment