summaryrefslogtreecommitdiffstats
path: root/src/glsl
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/glsl
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/glsl')
-rw-r--r--src/glsl/standalone_scaffolding.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp
index 679714e384a..7e37be57860 100644
--- a/src/glsl/standalone_scaffolding.cpp
+++ b/src/glsl/standalone_scaffolding.cpp
@@ -80,6 +80,7 @@ void initialize_context_to_defaults(struct gl_context *ctx, gl_api api)
ctx->Extensions.EXT_texture3D = true;
ctx->Extensions.OES_EGL_image_external = true;
ctx->Extensions.ARB_shader_bit_encoding = true;
+ ctx->Extensions.OES_standard_derivatives = true;
ctx->Const.GLSLVersion = 120;