diff options
author | Michal Krol <[email protected]> | 2005-04-14 10:28:14 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2005-04-14 10:28:14 +0000 |
commit | 8c01903114c770e735b66e343302d9d9f122d22e (patch) | |
tree | 0d836b4dad7d71a480c1cc217d31dd1610d2b213 | |
parent | 6372ea0da03a4d5fcfaa5b59032d0299bd7ef965 (diff) |
ARB_fragment_shader state
-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 23ab1e6d0e6..6680edd1655 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; } |