summaryrefslogtreecommitdiffstats
path: root/src/glx/indirect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/indirect.c')
-rw-r--r--src/glx/indirect.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/glx/indirect.c b/src/glx/indirect.c
index b2675c2958f..c80a237bedc 100644
--- a/src/glx/indirect.c
+++ b/src/glx/indirect.c
@@ -8597,6 +8597,21 @@ __indirect_glDrawBuffersARB(GLsizei n, const GLenum * bufs)
}
}
+#define X_GLrop_ClampColorARB 234
+void
+__indirect_glClampColorARB(GLenum target, GLenum clamp)
+{
+ struct glx_context *const gc = __glXGetCurrentContext();
+ const GLuint cmdlen = 12;
+ emit_header(gc->pc, X_GLrop_ClampColorARB, cmdlen);
+ (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
+ (void) memcpy((void *) (gc->pc + 8), (void *) (&clamp), 4);
+ gc->pc += cmdlen;
+ if (__builtin_expect(gc->pc > gc->limit, 0)) {
+ (void) __glXFlushRenderBuffer(gc, gc->pc);
+ }
+}
+
#define X_GLrop_RenderbufferStorageMultisample 4331
void
__indirect_glRenderbufferStorageMultisample(GLenum target, GLsizei samples,