mesa/main: split float-texture support checking in two
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 16 Nov 2018 09:49:55 +0000 (10:49 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 3 Dec 2018 17:16:44 +0000 (18:16 +0100)
commit74eab1c62fd37ca172b912f66add030043a59c92
treeb661c218b3c20e8a5f1632db0b21b5cac4f1f336
parentc4136ed5cc07a73c01d24a1c17ebe71e2690aef7
mesa/main: split float-texture support checking in two

On OpenGL ES 2.0, there's separate extensions adding support for
half-float and float textures. So we need to validate the enums
separately as well.

This also prevents these enums from incorrectly being allowed on
OpenGL ES 1.x, where there's no extension that enables this in the
first place.

While we're at it, remove the pointless default-case, and the seemingly
stale fallthrough comment.

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