mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
mesa/main: fix meta caller of _mesa_ClampColor
Since _mesa_ClampColor properly checks for support of the API function now, it's meta callers need to check support as well. Fixes:963311b71f("mesa/main: fix version/extension checks in _mesa_ClampColor") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99401 Tested-by: Mark Janes <mark.a.janes@intel.com> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Cc: "17.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commita7c635ec65)
This commit is contained in:
parent
ff81869f0d
commit
613154fc8f
1 changed files with 2 additions and 1 deletions
|
|
@ -1071,7 +1071,8 @@ _mesa_PopAttrib(void)
|
|||
if (ctx->Extensions.ARB_color_buffer_float)
|
||||
_mesa_ClampColor(GL_CLAMP_FRAGMENT_COLOR_ARB,
|
||||
color->ClampFragmentColor);
|
||||
_mesa_ClampColor(GL_CLAMP_READ_COLOR_ARB, color->ClampReadColor);
|
||||
if (ctx->Extensions.ARB_color_buffer_float || ctx->Version >= 30)
|
||||
_mesa_ClampColor(GL_CLAMP_READ_COLOR_ARB, color->ClampReadColor);
|
||||
|
||||
/* GL_ARB_framebuffer_sRGB / GL_EXT_framebuffer_sRGB */
|
||||
if (ctx->Extensions.EXT_framebuffer_sRGB)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue