diff options
author | marha <marha@users.sourceforge.net> | 2011-03-08 08:31:07 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-03-08 08:31:07 +0000 |
commit | 62f8e1becaed544f600e167508fe76bc953d647e (patch) | |
tree | 175c3d80e16613dbe92a497836bf685d1324803d /mesalib/src/mesa/state_tracker/st_cb_fbo.c | |
parent | b1236880df6cbd13760a2adfaff9c22a89501d66 (diff) | |
parent | 8c74e7257ed453143c53086f884f6c6ff585379a (diff) | |
download | vcxsrv-62f8e1becaed544f600e167508fe76bc953d647e.tar.gz vcxsrv-62f8e1becaed544f600e167508fe76bc953d647e.tar.bz2 vcxsrv-62f8e1becaed544f600e167508fe76bc953d647e.zip |
svn merge ^/branches/released .
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_cb_fbo.c')
-rw-r--r-- | mesalib/src/mesa/state_tracker/st_cb_fbo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_cb_fbo.c b/mesalib/src/mesa/state_tracker/st_cb_fbo.c index 7e124186c..534fa7041 100644 --- a/mesalib/src/mesa/state_tracker/st_cb_fbo.c +++ b/mesalib/src/mesa/state_tracker/st_cb_fbo.c @@ -79,7 +79,11 @@ st_renderbuffer_alloc_storage(struct gl_context * ctx, else
format = st_choose_renderbuffer_format(screen, internalFormat,
rb->NumSamples);
-
+
+ if (format == PIPE_FORMAT_NONE) {
+ return FALSE;
+ }
+
/* init renderbuffer fields */
strb->Base.Width = width;
strb->Base.Height = height;
|