summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-10-28 15:01:52 +0100
committerMarek Olšák <[email protected]>2012-10-31 02:04:54 +0100
commit55bf57dbb4e3ee1f0131fe7fc19211148b9e1e2f (patch)
tree1155b3709fc5130cd88ee926d06a56972e5e1df5 /src/mesa/main
parentb6f5c37ac3e8ec3aae39289f94f05cb71a587066 (diff)
mesa: don't always enable OES_standard_derivatives
For Intel, expose it only if gen >= 4. For Gallium, expose it only if PIPE_CAP_SM3 is advertised. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/extensions.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 142f8652f73..7fdf75abb86 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -357,8 +357,6 @@ name_to_offset(const char* name)
* XXX: Should these defaults also apply to GLES?
*/
static const size_t default_extensions[] = {
- o(OES_standard_derivatives),
-
/* Vendor Extensions */
o(APPLE_packed_pixels),
o(IBM_multimode_draw_arrays),
@@ -464,6 +462,7 @@ _mesa_enable_sw_extensions(struct gl_context *ctx)
/*ctx->Extensions.NV_texgen_reflection = GL_TRUE;*/
ctx->Extensions.NV_fragment_program_option = GL_TRUE;
ctx->Extensions.EXT_gpu_program_parameters = GL_TRUE;
+ ctx->Extensions.OES_standard_derivatives = GL_TRUE;
_mesa_enable_extension(ctx, "GL_3DFX_texture_compression_FXT1");
if (ctx->Mesa_DXTn) {
ctx->Extensions.ANGLE_texture_compression_dxt = GL_TRUE;