dri/nouveau: Check _ColorDrawBuffers[0] before emitting fb state.
This commit is contained in:
@@ -63,7 +63,7 @@ nv04_emit_framebuffer(GLcontext *ctx, int emit)
|
||||
return;
|
||||
|
||||
/* Render target */
|
||||
if (fb->_NumColorDrawBuffers) {
|
||||
if (fb->_ColorDrawBuffers[0]) {
|
||||
s = &to_nouveau_renderbuffer(
|
||||
fb->_ColorDrawBuffers[0])->surface;
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ nv10_emit_framebuffer(GLcontext *ctx, int emit)
|
||||
}
|
||||
|
||||
/* Render target */
|
||||
if (fb->_NumColorDrawBuffers) {
|
||||
if (fb->_ColorDrawBuffers[0]) {
|
||||
s = &to_nouveau_renderbuffer(
|
||||
fb->_ColorDrawBuffers[0])->surface;
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ nv20_emit_framebuffer(GLcontext *ctx, int emit)
|
||||
return;
|
||||
|
||||
/* Render target */
|
||||
if (fb->_NumColorDrawBuffers) {
|
||||
if (fb->_ColorDrawBuffers[0]) {
|
||||
s = &to_nouveau_renderbuffer(
|
||||
fb->_ColorDrawBuffers[0])->surface;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user