diff options
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/indirect.c | 15 | ||||
-rw-r--r-- | src/glx/indirect.h | 1 | ||||
-rw-r--r-- | src/glx/indirect_init.c | 4 |
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; |