summaryrefslogtreecommitdiff
path: root/src/mesa/main/extensions.c
diff options
context:
space:
mode:
authorChad Versace <chad.versace@intel.com>2011-01-12 15:47:26 -0800
committerChad Versace <chad.versace@intel.com>2011-01-13 17:26:28 -0800
commit78838b2d1bd88f948030cd60479b832b661ccd3c (patch)
tree6b0ae4f6ec00c7578b483ad90d8d5651d0c80a94 /src/mesa/main/extensions.c
parenta2ab929ab2d7dd4fcbbc5f32c8feabf42cad4d34 (diff)
mesa: Change OES_standard_derivatives to be stand-alone extension
Add a bit in struct gl_extensions for OES_standard_derivatives, and enable the bit by default. Advertise the extension only if the bit is enabled. Previously, OES_standard_derivatives was advertised in GLES2 contexts if ARB_framebuffer_object was enabled.
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r--src/mesa/main/extensions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 015f89aa0b..39aabdb752 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -232,7 +232,7 @@ static const struct extension extension_table[] = {
{ "GL_OES_read_format", o(OES_read_format), GL | ES1 },
{ "GL_OES_rgb8_rgba8", o(EXT_framebuffer_object), ES1 | ES2 },
{ "GL_OES_single_precision", o(dummy_true), ES1 },
- { "GL_OES_standard_derivatives", o(ARB_fragment_shader), ES2 },
+ { "GL_OES_standard_derivatives", o(OES_standard_derivatives), ES2 },
{ "GL_OES_stencil1", o(dummy_false), DISABLE },
{ "GL_OES_stencil4", o(dummy_false), DISABLE },
{ "GL_OES_stencil8", o(EXT_framebuffer_object), ES1 | ES2 },
@@ -351,6 +351,7 @@ static const size_t default_extensions[] = {
o(EXT_vertex_array),
o(OES_read_format),
+ o(OES_standard_derivatives),
/* Vendor Extensions */
o(APPLE_packed_pixels),