Mesa (arb_fbo): mesa: stub for _mesa_RenderbufferStorageMultisample()

Brian Paul brianp at kemper.freedesktop.org
Tue Jan 20 22:30:48 UTC 2009


Module: Mesa
Branch: arb_fbo
Commit: 1f3b6a46244d426f041099e9f0330777f8aaeebf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f3b6a46244d426f041099e9f0330777f8aaeebf

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jan 20 15:04:48 2009 -0700

mesa: stub for _mesa_RenderbufferStorageMultisample()

---

 src/mesa/main/api_exec.c |    1 +
 src/mesa/main/fbobject.c |   15 ++++++++++++++-
 src/mesa/main/fbobject.h |    5 +++++
 3 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c
index 00d4c87..f8ee0d5 100644
--- a/src/mesa/main/api_exec.c
+++ b/src/mesa/main/api_exec.c
@@ -885,6 +885,7 @@ _mesa_init_exec_table(struct _glapi_table *exec)
    /* The ARB_fbo functions are the union of
     * GL_EXT_fbo, GL_EXT_framebuffer_blit, GL_EXT_texture_array
     */
+   SET_RenderbufferStorageMultisample(exec, _mesa_RenderbufferStorageMultisample);
 #endif
 }
 
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index cdfa291..dbd9c13 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -571,7 +571,10 @@ _mesa_test_framebuffer_completeness(GLcontext *ctx, struct gl_framebuffer *fb)
    /* Provisionally set status = COMPLETE ... */
    fb->_Status = GL_FRAMEBUFFER_COMPLETE_EXT;
 
-   /* ... but the driver may say the FB is incomplete: */
+   /* ... but the driver may say the FB is incomplete.
+    * Drivers will most likely set the status to GL_FRAMEBUFFER_UNSUPPORTED
+    * if anything.
+    */
    if (ctx->Driver.ValidateFramebuffer) {
       ctx->Driver.ValidateFramebuffer(ctx, fb);
       if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) {
@@ -879,6 +882,16 @@ _mesa_RenderbufferStorageEXT(GLenum target, GLenum internalFormat,
 
 
 void GLAPIENTRY
+_mesa_RenderbufferStorageMultisample(GLenum target, GLsizei samples,
+                                     GLenum internalformat,
+                                     GLsizei width, GLsizei height)
+{
+
+}
+
+
+
+void GLAPIENTRY
 _mesa_GetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint *params)
 {
    GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h
index b615471..33d16cc 100644
--- a/src/mesa/main/fbobject.h
+++ b/src/mesa/main/fbobject.h
@@ -83,6 +83,11 @@ extern void GLAPIENTRY
 _mesa_RenderbufferStorageEXT(GLenum target, GLenum internalformat,
                              GLsizei width, GLsizei height);
 
+void GLAPIENTRY
+_mesa_RenderbufferStorageMultisample(GLenum target, GLsizei samples,
+                                     GLenum internalformat,
+                                     GLsizei width, GLsizei height);
+
 extern void GLAPIENTRY
 _mesa_GetRenderbufferParameterivEXT(GLenum target, GLenum pname,
                                     GLint *params);




More information about the mesa-commit mailing list