OSDN Git Service

mesa/core: Enable EXT_depth_clamp for GLES >= 2.0
authorGert Wollny <gert.wollny@collabora.com>
Wed, 2 Jan 2019 14:44:33 +0000 (15:44 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Mon, 25 Feb 2019 09:44:27 +0000 (09:44 +0000)
commit875942c059433950fd2de23445f20b85b1074512
tree1c9ac30c036a69bfc3db3eaf5f941a2e9704b326
parentb45186a6cd0ed7539e427d4443671faef9f95058
mesa/core: Enable EXT_depth_clamp for GLES >= 2.0

The extension NV_depth_clamp is written against OpenGL 1.2.1, and
since GLES 2.0 is based on GL 2.0 there is no reason not to enable
this extension also for GLES >= 2.0.

v2: Use EXT_depth_clamp that has been proposed to Khronos

v3: - Fix check for extension availability (Erik Faya-Lund)
    - Also fix the test in is_enabled
v4: - Test both, ARB and EXT extension (Erik)
v5: - Fix white space errors (Erik)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/mesa/main/enable.c
src/mesa/main/extensions_table.h