mesa: stub for _mesa_RenderbufferStorageMultisample()
authorBrian Paul <brianp@vmware.com>
Thu, 22 Jan 2009 22:17:42 +0000 (15:17 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Jan 2009 22:17:42 +0000 (15:17 -0700)
src/mesa/main/api_exec.c
src/mesa/main/fbobject.c
src/mesa/main/fbobject.h

index bae3bf11cb51af2b45d5afc3dc6ed81cdb161cab..f8ee0d59dda3274cfcb0e626817411540118afe3 100644 (file)
@@ -880,5 +880,12 @@ _mesa_init_exec_table(struct _glapi_table *exec)
 
    /* GL_ATI_separate_stencil */
    SET_StencilFuncSeparateATI(exec, _mesa_StencilFuncSeparateATI);
+
+#if FEATURE_ARB_framebuffer_object
+   /* 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
 }
 
index cdfa291e1093f0065b4c4d17c3f041164a76d1d2..dbd9c130d0f9343884538d326e40a8e50bc4cf1c 100644 (file)
@@ -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) {
@@ -878,6 +881,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)
 {
index b6154719abc5d1a39127123ea3a72ac5a34dc58f..33d16cc5a03d2e3972f3b05c4a9a687386674744 100644 (file)
@@ -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);