summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mapi/glapi/gen/ARB_direct_state_access.xml1
-rw-r--r--src/mesa/main/clear.c4
-rw-r--r--src/mesa/main/clear.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/mapi/glapi/gen/ARB_direct_state_access.xml b/src/mapi/glapi/gen/ARB_direct_state_access.xml
index 155b6f8d528..43841bb6c06 100644
--- a/src/mapi/glapi/gen/ARB_direct_state_access.xml
+++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml
@@ -242,6 +242,7 @@
<function name="ClearNamedFramebufferfi">
<param name="framebuffer" type="GLuint" />
<param name="buffer" type="GLenum" />
+ <param name="drawbuffer" type="GLint" />
<param name="depth" type="GLfloat" />
<param name="stencil" type="GLint" />
</function>
diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c
index 92f69ab9b59..35b912cbf10 100644
--- a/src/mesa/main/clear.c
+++ b/src/mesa/main/clear.c
@@ -646,12 +646,12 @@ _mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
*/
void GLAPIENTRY
_mesa_ClearNamedFramebufferfi(GLuint framebuffer, GLenum buffer,
- GLfloat depth, GLint stencil)
+ GLint drawbuffer, GLfloat depth, GLint stencil)
{
GLint oldfb;
_mesa_GetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &oldfb);
_mesa_BindFramebuffer(GL_DRAW_FRAMEBUFFER, framebuffer);
- _mesa_ClearBufferfi(buffer, 0, depth, stencil);
+ _mesa_ClearBufferfi(buffer, drawbuffer, depth, stencil);
_mesa_BindFramebuffer(GL_DRAW_FRAMEBUFFER, (GLuint) oldfb);
}
diff --git a/src/mesa/main/clear.h b/src/mesa/main/clear.h
index c29850676ca..fb3bcdeefbf 100644
--- a/src/mesa/main/clear.h
+++ b/src/mesa/main/clear.h
@@ -75,6 +75,6 @@ _mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
extern void GLAPIENTRY
_mesa_ClearNamedFramebufferfi(GLuint framebuffer, GLenum buffer,
- GLfloat depth, GLint stencil);
+ GLint drawbuffer, GLfloat depth, GLint stencil);
#endif