diff options
-rw-r--r-- | src/mesa/main/hint.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mesa/main/hint.c b/src/mesa/main/hint.c index 23ab1e6d0e..6680edd165 100644 --- a/src/mesa/main/hint.c +++ b/src/mesa/main/hint.c @@ -109,6 +109,18 @@ _mesa_Hint( GLenum target, GLenum mode ) return; FLUSH_VERTICES(ctx, _NEW_HINT); ctx->Hint.GenerateMipmap = mode; + break;
+
+ /* GL_ARB_fragment_shader */
+ case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB:
+ if (!ctx->Extensions.ARB_fragment_shader) {
+ _mesa_error(ctx, GL_INVALID_ENUM, "glHint(target)");
+ return;
+ }
+ if (ctx->Hint.FragmentShaderDerivative == mode)
+ return;
+ FLUSH_VERTICES(ctx, _NEW_HINT);
+ ctx->Hint.FragmentShaderDerivative = mode;
break; default: @@ -136,5 +148,6 @@ void _mesa_init_hint( GLcontext * ctx ) ctx->Hint.Fog = GL_DONT_CARE; ctx->Hint.ClipVolumeClipping = GL_DONT_CARE; ctx->Hint.TextureCompression = GL_DONT_CARE; - ctx->Hint.GenerateMipmap = GL_DONT_CARE; + ctx->Hint.GenerateMipmap = GL_DONT_CARE;
+ ctx->Hint.FragmentShaderDerivative = GL_DONT_CARE; } |