aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-02-16 00:02:15 +0100
committerMarek Olšák <[email protected]>2011-03-29 12:04:54 +0200
commit3bdd12ecb57e9cdc2b21cd665fab14698c1c07df (patch)
treec844a3b76da4a84c9f35c97bf2255b712875c908 /src/glx
parent9d60a7ce08a67eb8b79c60f829d090ba4a37ed7e (diff)
mesa: regenerate glapi files
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/indirect.c15
-rw-r--r--src/glx/indirect.h1
-rw-r--r--src/glx/indirect_init.c4
3 files changed, 20 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,
diff --git a/src/glx/indirect.h b/src/glx/indirect.h
index b610cc20279..22bdb827d96 100644
--- a/src/glx/indirect.h
+++ b/src/glx/indirect.h
@@ -573,6 +573,7 @@ extern HIDDEN void __indirect_glGetQueryObjectuivARB(GLuint id, GLenum pname, GL
extern HIDDEN void __indirect_glGetQueryivARB(GLenum target, GLenum pname, GLint * params);
extern HIDDEN GLboolean __indirect_glIsQueryARB(GLuint id);
extern HIDDEN void __indirect_glDrawBuffersARB(GLsizei n, const GLenum * bufs);
+extern HIDDEN void __indirect_glClampColorARB(GLenum target, GLenum clamp);
extern HIDDEN void __indirect_glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
extern HIDDEN void __indirect_glSampleMaskSGIS(GLclampf value, GLboolean invert);
extern HIDDEN void __indirect_glSamplePatternSGIS(GLenum pattern);
diff --git a/src/glx/indirect_init.c b/src/glx/indirect_init.c
index 9f1ee5930fc..7bb6754e38f 100644
--- a/src/glx/indirect_init.c
+++ b/src/glx/indirect_init.c
@@ -588,6 +588,10 @@ struct _glapi_table * __glXNewIndirectAPI( void )
glAPI->DrawBuffersARB = __indirect_glDrawBuffersARB;
+ /* 39. GL_ARB_color_buffer_float */
+
+ glAPI->ClampColorARB = __indirect_glClampColorARB;
+
/* 45. GL_ARB_framebuffer_object */
glAPI->RenderbufferStorageMultisample = __indirect_glRenderbufferStorageMultisample;