mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
nouveau: nv30: check number of colour buffers to bind
This commit is contained in:
parent
ce98860012
commit
cb351bdd6e
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ nv30_state_framebuffer_validate(struct nv30_context *nv30)
|
|||
struct nv30_miptree *nv30mt;
|
||||
int colour_bits = 32, zeta_bits = 32;
|
||||
|
||||
if (fb->nr_cbufs == 0) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
rt_enable = 0;
|
||||
for (i = 0; i < fb->nr_cbufs; i++) {
|
||||
if (colour_format) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue