mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 05:38:16 +02:00
added CHAN_BITS != 8 test
This commit is contained in:
parent
85bc17495b
commit
960973b2ec
1 changed files with 3 additions and 0 deletions
|
|
@ -578,6 +578,9 @@ get_line_func(GLcontext *ctx)
|
|||
int depth = GET_VISUAL_DEPTH(xmesa->xm_visual);
|
||||
struct xmesa_renderbuffer *xrb;
|
||||
|
||||
if (CHAN_BITS != 8)
|
||||
return NULL;
|
||||
|
||||
if ((ctx->DrawBuffer->_ColorDrawBufferMask[0]
|
||||
& (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_BACK_LEFT)) == 0)
|
||||
return (swrast_line_func) NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue