mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
mesa: fix infinite loop bug in _mesa_drawbuffers()
Fixes bug 24946.
This regression came from 8df699b3bb.
This commit is contained in:
parent
67034b9efc
commit
d971069fc6
1 changed files with 2 additions and 1 deletions
|
|
@ -424,9 +424,10 @@ _mesa_drawbuffers(GLcontext *ctx, GLuint n, const GLenum *buffers,
|
||||||
while (buf < ctx->Const.MaxDrawBuffers) {
|
while (buf < ctx->Const.MaxDrawBuffers) {
|
||||||
if (fb->_ColorDrawBufferIndexes[buf] != -1) {
|
if (fb->_ColorDrawBufferIndexes[buf] != -1) {
|
||||||
fb->_ColorDrawBufferIndexes[buf] = -1;
|
fb->_ColorDrawBufferIndexes[buf] = -1;
|
||||||
buf++;
|
newState = GL_TRUE;
|
||||||
}
|
}
|
||||||
fb->ColorDrawBuffer[buf] = GL_NONE;
|
fb->ColorDrawBuffer[buf] = GL_NONE;
|
||||||
|
buf++;
|
||||||
}
|
}
|
||||||
fb->_NumColorDrawBuffers = count;
|
fb->_NumColorDrawBuffers = count;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue