mesa/main: clean up OES_texture_float_linear check
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 16 Nov 2018 10:43:00 +0000 (11:43 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 3 Dec 2018 17:16:44 +0000 (18:16 +0100)
commit2e753b77ddb0854d455c3cae826ae4412a64c3eb
treef4af0fd4563b46b8afb81a662b935d5e6b2ab410
parent1373d117c2e5d3a2a7056ee150a5704f54d3dac7
mesa/main: clean up OES_texture_float_linear check

Using the _mesa_has_FOO_bar helpers is generally more safe and should
generally be prefered over checking driver-caps like this code did,
because the _mesa_has_FOO_bar helpers also verify the API type and
version.

This shouldn't have any practical effect here, as this function only
gets called for OpenGL ES 3.x right now. But if this was to change in
the future, this makes the function behave a lot more predictable.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/glformats.c