3 * Frame buffer management.
7 * Mesa 3-D graphics library
10 * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
19 * The above copyright notice and this permission notice shall be included
20 * in all copies or substantial portions of the Software.
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45 _mesa_ClearIndex( GLfloat c
)
47 GET_CURRENT_CONTEXT(ctx
);
48 ASSERT_OUTSIDE_BEGIN_END(ctx
);
50 if (ctx
->Color
.ClearIndex
== (GLuint
) c
)
53 FLUSH_VERTICES(ctx
, _NEW_COLOR
);
54 ctx
->Color
.ClearIndex
= (GLuint
) c
;
56 if (!ctx
->Visual
.rgbMode
&& ctx
->Driver
.ClearIndex
) {
57 /* it's OK to call glClearIndex in RGBA mode but it should be a NOP */
58 (*ctx
->Driver
.ClearIndex
)( ctx
, ctx
->Color
.ClearIndex
);
65 * Specify the clear values for the color buffers.
67 * \param red red color component.
68 * \param green green color component.
69 * \param blue blue color component.
70 * \param alpha alpha component.
74 * Clamps the parameters and updates gl_colorbuffer_attrib::ClearColor. On a
75 * change, flushes the vertices and notifies the driver via the
76 * dd_function_table::ClearColor callback.
79 _mesa_ClearColor( GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
)
82 GET_CURRENT_CONTEXT(ctx
);
83 ASSERT_OUTSIDE_BEGIN_END(ctx
);
85 tmp
[0] = CLAMP(red
, 0.0F
, 1.0F
);
86 tmp
[1] = CLAMP(green
, 0.0F
, 1.0F
);
87 tmp
[2] = CLAMP(blue
, 0.0F
, 1.0F
);
88 tmp
[3] = CLAMP(alpha
, 0.0F
, 1.0F
);
90 if (TEST_EQ_4V(tmp
, ctx
->Color
.ClearColor
))
91 return; /* no change */
93 FLUSH_VERTICES(ctx
, _NEW_COLOR
);
94 COPY_4V(ctx
->Color
.ClearColor
, tmp
);
96 if (ctx
->Visual
.rgbMode
&& ctx
->Driver
.ClearColor
) {
97 /* it's OK to call glClearColor in CI mode but it should be a NOP */
98 (*ctx
->Driver
.ClearColor
)(ctx
, ctx
->Color
.ClearColor
);
106 * \param mask bit-mask indicating the buffers to be cleared.
108 * Flushes the vertices and verifies the parameter. If __GLcontextRec::NewState
109 * is set then calls _mesa_update_state() to update gl_frame_buffer::_Xmin,
110 * etc. If the rasterization mode is set to GL_RENDER then requests the driver
111 * to clear the buffers, via the dd_function_table::Clear callback.
114 _mesa_Clear( GLbitfield mask
)
116 GET_CURRENT_CONTEXT(ctx
);
117 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx
);
119 if (MESA_VERBOSE
& VERBOSE_API
)
120 _mesa_debug(ctx
, "glClear 0x%x\n", mask
);
122 if (mask
& ~(GL_COLOR_BUFFER_BIT
|
123 GL_DEPTH_BUFFER_BIT
|
124 GL_STENCIL_BUFFER_BIT
|
125 GL_ACCUM_BUFFER_BIT
)) {
126 /* invalid bit set */
127 _mesa_error( ctx
, GL_INVALID_VALUE
, "glClear(0x%x)", mask
);
132 _mesa_update_state( ctx
); /* update _Xmin, etc */
135 if (ctx
->RenderMode
== GL_RENDER
) {
136 const GLint x
= ctx
->DrawBuffer
->_Xmin
;
137 const GLint y
= ctx
->DrawBuffer
->_Ymin
;
138 const GLint height
= ctx
->DrawBuffer
->_Ymax
- ctx
->DrawBuffer
->_Ymin
;
139 const GLint width
= ctx
->DrawBuffer
->_Xmax
- ctx
->DrawBuffer
->_Xmin
;
140 GLbitfield bufferMask
;
142 /* don't clear depth buffer if depth writing disabled */
143 if (!ctx
->Depth
.Mask
)
144 mask
&= ~GL_DEPTH_BUFFER_BIT
;
146 /* Build the bitmask to send to device driver's Clear function.
147 * Note that the GL_COLOR_BUFFER_BIT flag will expand to 0, 1, 2 or 4
148 * of the BUFFER_BIT_FRONT/BACK_LEFT/RIGHT flags, or one of the
149 * BUFFER_BIT_COLORn flags.
152 if (mask
& GL_COLOR_BUFFER_BIT
) {
153 bufferMask
|= ctx
->DrawBuffer
->_ColorDrawBufferMask
[0];
156 if ((mask
& GL_DEPTH_BUFFER_BIT
)
157 && ctx
->DrawBuffer
->Visual
.haveDepthBuffer
) {
158 bufferMask
|= BUFFER_BIT_DEPTH
;
161 if ((mask
& GL_STENCIL_BUFFER_BIT
)
162 && ctx
->DrawBuffer
->Visual
.haveStencilBuffer
) {
163 bufferMask
|= BUFFER_BIT_STENCIL
;
166 if ((mask
& GL_ACCUM_BUFFER_BIT
)
167 && ctx
->DrawBuffer
->Visual
.haveAccumBuffer
) {
168 bufferMask
|= BUFFER_BIT_ACCUM
;
171 ASSERT(ctx
->Driver
.Clear
);
172 ctx
->Driver
.Clear( ctx
, bufferMask
, (GLboolean
) !ctx
->Scissor
.Enabled
,
173 x
, y
, width
, height
);
180 * Return bitmask of BUFFER_BIT_* flags indicating which color buffers are
181 * available to the rendering context.
182 * This depends on the framebuffer we're writing to. For window system
183 * framebuffers we look at the framebuffer's visual. But for user-
184 * create framebuffers we look at the number of supported color attachments.
187 supported_buffer_bitmask(const GLcontext
*ctx
, GLuint framebufferID
)
192 if (framebufferID
> 0) {
193 /* A user-created renderbuffer */
194 ASSERT(ctx
->Extensions
.EXT_framebuffer_object
);
195 for (i
= 0; i
< ctx
->Const
.MaxColorAttachments
; i
++) {
196 mask
|= (BUFFER_BIT_COLOR0
<< i
);
200 /* A window system renderbuffer */
201 mask
= BUFFER_BIT_FRONT_LEFT
; /* always have this */
202 if (ctx
->Visual
.stereoMode
) {
203 mask
|= BUFFER_BIT_FRONT_RIGHT
;
204 if (ctx
->Visual
.doubleBufferMode
) {
205 mask
|= BUFFER_BIT_BACK_LEFT
| BUFFER_BIT_BACK_RIGHT
;
208 else if (ctx
->Visual
.doubleBufferMode
) {
209 mask
|= BUFFER_BIT_BACK_LEFT
;
212 for (i
= 0; i
< ctx
->Visual
.numAuxBuffers
; i
++) {
213 mask
|= (BUFFER_BIT_AUX0
<< i
);
222 * Helper routine used by glDrawBuffer and glDrawBuffersARB.
223 * Given a GLenum naming one or more color buffers (such as
224 * GL_FRONT_AND_BACK), return the corresponding bitmask of BUFFER_BIT_* flags.
227 draw_buffer_enum_to_bitmask(GLenum buffer
)
233 return BUFFER_BIT_FRONT_LEFT
| BUFFER_BIT_FRONT_RIGHT
;
235 return BUFFER_BIT_BACK_LEFT
| BUFFER_BIT_BACK_RIGHT
;
237 return BUFFER_BIT_FRONT_RIGHT
| BUFFER_BIT_BACK_RIGHT
;
239 return BUFFER_BIT_FRONT_RIGHT
;
241 return BUFFER_BIT_BACK_RIGHT
;
243 return BUFFER_BIT_BACK_LEFT
;
244 case GL_FRONT_AND_BACK
:
245 return BUFFER_BIT_FRONT_LEFT
| BUFFER_BIT_BACK_LEFT
246 | BUFFER_BIT_FRONT_RIGHT
| BUFFER_BIT_BACK_RIGHT
;
248 return BUFFER_BIT_FRONT_LEFT
| BUFFER_BIT_BACK_LEFT
;
250 return BUFFER_BIT_FRONT_LEFT
;
252 return BUFFER_BIT_AUX0
;
254 return BUFFER_BIT_AUX1
;
256 return BUFFER_BIT_AUX2
;
258 return BUFFER_BIT_AUX3
;
259 case GL_COLOR_ATTACHMENT0_EXT
:
260 return BUFFER_BIT_COLOR0
;
261 case GL_COLOR_ATTACHMENT1_EXT
:
262 return BUFFER_BIT_COLOR1
;
263 case GL_COLOR_ATTACHMENT2_EXT
:
264 return BUFFER_BIT_COLOR2
;
265 case GL_COLOR_ATTACHMENT3_EXT
:
266 return BUFFER_BIT_COLOR3
;
275 * Helper routine used by glReadBuffer.
276 * Given a GLenum naming (a) color buffer(s), return the corresponding
277 * bitmask of DD_* flags.
280 read_buffer_enum_to_bitmask(GLenum buffer
)
284 return BUFFER_BIT_FRONT_LEFT
;
286 return BUFFER_BIT_BACK_LEFT
;
288 return BUFFER_BIT_FRONT_RIGHT
;
290 return BUFFER_BIT_FRONT_RIGHT
;
292 return BUFFER_BIT_BACK_RIGHT
;
294 return BUFFER_BIT_BACK_LEFT
;
296 return BUFFER_BIT_FRONT_LEFT
;
298 return BUFFER_BIT_FRONT_LEFT
;
300 return BUFFER_BIT_AUX0
;
302 return BUFFER_BIT_AUX1
;
304 return BUFFER_BIT_AUX2
;
306 return BUFFER_BIT_AUX3
;
307 case GL_COLOR_ATTACHMENT0_EXT
:
308 return BUFFER_BIT_COLOR0
;
309 case GL_COLOR_ATTACHMENT1_EXT
:
310 return BUFFER_BIT_COLOR1
;
311 case GL_COLOR_ATTACHMENT2_EXT
:
312 return BUFFER_BIT_COLOR2
;
313 case GL_COLOR_ATTACHMENT3_EXT
:
314 return BUFFER_BIT_COLOR3
;
323 * Specify which color buffers to draw into.
325 * \param buffer color buffer, such as GL_LEFT or GL_FRONT_AND_BACK.
327 * Flushes the vertices and verifies the parameter and updates the
328 * gl_colorbuffer_attrib::_DrawDestMask bitfield. Marks new color state in
329 * __GLcontextRec::NewState and notifies the driver via the
330 * dd_function_table::DrawBuffer callback.
333 _mesa_DrawBuffer(GLenum buffer
)
337 GET_CURRENT_CONTEXT(ctx
);
338 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx
); /* too complex... */
340 if (MESA_VERBOSE
& VERBOSE_API
) {
341 _mesa_debug(ctx
, "glDrawBuffer %s\n", _mesa_lookup_enum_by_nr(buffer
));
344 bufferID
= ctx
->DrawBuffer
->Name
;
346 if (buffer
== GL_NONE
) {
350 const GLuint supportedMask
= supported_buffer_bitmask(ctx
, bufferID
);
351 destMask
= draw_buffer_enum_to_bitmask(buffer
);
352 if (destMask
== BAD_MASK
) {
353 /* totally bogus buffer */
354 _mesa_error(ctx
, GL_INVALID_ENUM
, "glDrawBuffer(buffer)");
357 destMask
&= supportedMask
;
358 if (destMask
== 0x0) {
359 /* none of the named color buffers exist! */
360 _mesa_error(ctx
, GL_INVALID_OPERATION
, "glDrawBuffer(buffer)");
365 /* if we get here, there's no error so set new state */
366 _mesa_drawbuffers(ctx
, 1, &buffer
, &destMask
);
371 * Called by glDrawBuffersARB; specifies the destination color buffers
372 * for N fragment program color outputs.
374 * XXX This function is called by _mesa_PopAttrib() and we need to do
375 * some more work to deal with the current framebuffer binding state!
378 _mesa_DrawBuffersARB(GLsizei n
, const GLenum
*buffers
)
381 GLuint usedBufferMask
, supportedMask
;
383 GLuint destMask
[MAX_DRAW_BUFFERS
];
384 GET_CURRENT_CONTEXT(ctx
);
385 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx
);
387 if (!ctx
->Extensions
.ARB_draw_buffers
) {
388 _mesa_error(ctx
, GL_INVALID_OPERATION
, "glDrawBuffersARB");
391 if (n
< 1 || n
> (GLsizei
) ctx
->Const
.MaxDrawBuffers
) {
392 _mesa_error(ctx
, GL_INVALID_VALUE
, "glDrawBuffersARB(n)");
396 bufferID
= ctx
->DrawBuffer
->Name
;
398 supportedMask
= supported_buffer_bitmask(ctx
, bufferID
);
399 usedBufferMask
= 0x0;
401 /* complicated error checking... */
402 for (output
= 0; output
< n
; output
++) {
403 if (buffers
[output
] == GL_NONE
) {
404 destMask
[output
] = 0x0;
407 destMask
[output
] = draw_buffer_enum_to_bitmask(buffers
[output
]);
408 if (destMask
[output
] == BAD_MASK
409 || _mesa_bitcount(destMask
[output
]) > 1) {
410 _mesa_error(ctx
, GL_INVALID_ENUM
, "glDrawBuffersARB(buffer)");
413 destMask
[output
] &= supportedMask
;
414 if (destMask
[output
] == 0) {
415 _mesa_error(ctx
, GL_INVALID_OPERATION
,
416 "glDrawBuffersARB(unsupported buffer)");
419 if (destMask
[output
] & usedBufferMask
) {
420 /* can't specify a dest buffer more than once! */
421 _mesa_error(ctx
, GL_INVALID_OPERATION
,
422 "glDrawBuffersARB(duplicated buffer)");
427 usedBufferMask
|= destMask
[output
];
431 /* OK, if we get here, there were no errors so set the new state */
432 _mesa_drawbuffers(ctx
, n
, buffers
, destMask
);
437 * Set color output state. Traditionally, there was only one color
438 * output, but fragment programs can now have several distinct color
439 * outputs (see GL_ARB_draw_buffers). This function sets the state
440 * for one such color output.
443 set_color_output(GLcontext
*ctx
, GLuint output
, GLenum buffer
, GLuint destMask
)
445 struct gl_framebuffer
*fb
= ctx
->DrawBuffer
;
447 ASSERT(output
< ctx
->Const
.MaxDrawBuffers
);
449 fb
->ColorDrawBuffer
[output
] = buffer
;
450 fb
->_ColorDrawBufferMask
[output
] = destMask
;
453 /* Set traditional state var */
454 ctx
->Color
.DrawBuffer
[output
] = buffer
;
457 /* not really needed, will be set later */
458 fb
->_NumColorDrawBuffers
[output
] = 0;
463 * Helper routine used by _mesa_DrawBuffer, _mesa_DrawBuffersARB and
464 * _mesa_PopAttrib to set drawbuffer state.
467 _mesa_drawbuffers(GLcontext
*ctx
, GLsizei n
, const GLenum
*buffers
,
468 const GLuint
*destMask
)
470 GLuint mask
[MAX_DRAW_BUFFERS
];
474 /* compute destMask values now */
475 const GLuint bufferID
= ctx
->DrawBuffer
->Name
;
476 const GLuint supportedMask
= supported_buffer_bitmask(ctx
, bufferID
);
477 for (output
= 0; output
< n
; output
++) {
478 mask
[output
] = draw_buffer_enum_to_bitmask(buffers
[output
]);
479 ASSERT(mask
[output
] != BAD_MASK
);
480 mask
[output
] &= supportedMask
;
485 for (output
= 0; output
< n
; output
++) {
486 set_color_output(ctx
, output
, buffers
[output
], destMask
[output
]);
489 /* set remaining color outputs to NONE */
490 for (output
= n
; output
< ctx
->Const
.MaxDrawBuffers
; output
++) {
491 set_color_output(ctx
, output
, GL_NONE
, 0x0);
494 ctx
->NewState
|= _NEW_COLOR
;
497 * Call device driver function.
499 if (ctx
->Driver
.DrawBuffers
)
500 ctx
->Driver
.DrawBuffers(ctx
, n
, buffers
);
501 else if (ctx
->Driver
.DrawBuffer
)
502 ctx
->Driver
.DrawBuffer(ctx
, buffers
[0]);
508 * Set the color buffer source for reading pixels.
510 * \param mode color buffer.
512 * \sa glReadBuffer().
516 _mesa_ReadBuffer(GLenum buffer
)
518 struct gl_framebuffer
*fb
;
519 GLuint srcMask
, supportedMask
;
521 GET_CURRENT_CONTEXT(ctx
);
522 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx
);
524 fb
= ctx
->ReadBuffer
;
527 if (MESA_VERBOSE
& VERBOSE_API
)
528 _mesa_debug(ctx
, "glReadBuffer %s\n", _mesa_lookup_enum_by_nr(buffer
));
530 if (bufferID
> 0 && buffer
== GL_NONE
) {
536 srcMask
= read_buffer_enum_to_bitmask(buffer
);
537 if (srcMask
== BAD_MASK
) {
538 _mesa_error(ctx
, GL_INVALID_ENUM
, "glReadBuffer(buffer)");
541 supportedMask
= supported_buffer_bitmask(ctx
, bufferID
);
542 if ((srcMask
& supportedMask
) == 0) {
543 _mesa_error(ctx
, GL_INVALID_OPERATION
, "glReadBuffer(buffer)");
549 ctx
->Pixel
.ReadBuffer
= buffer
;
551 fb
->ColorReadBuffer
= buffer
;
552 fb
->_ColorReadBufferMask
= srcMask
;
554 ctx
->NewState
|= _NEW_PIXEL
;
557 * Call device driver function.
559 if (ctx
->Driver
.ReadBuffer
)
560 (*ctx
->Driver
.ReadBuffer
)(ctx
, buffer
);
567 * GL_MESA_resize_buffers extension.
569 * When this function is called, we'll ask the window system how large
570 * the current window is. If it's a new size, we'll call the driver's
571 * ResizeBuffers function. The driver will then resize its color buffers
572 * as needed, and maybe call the swrast's routine for reallocating
573 * swrast-managed depth/stencil/accum/etc buffers.
574 * \note This function may be called from within Mesa or called by the
575 * user directly (see the GL_MESA_resize_buffers extension).
578 /* THIS FUNCTION IS OBSOLETE!!!
579 * See _mesa_resize_framebuffer
583 _mesa_ResizeBuffersMESA( void )
585 GET_CURRENT_CONTEXT(ctx
);
587 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx
);
589 if (MESA_VERBOSE
& VERBOSE_API
)
590 _mesa_debug(ctx
, "glResizeBuffersMESA\n");
592 if (ctx
->DrawBuffer
&& ctx
->DrawBuffer
->Name
== 0) {
593 GLuint newWidth
, newHeight
;
594 GLframebuffer
*buffer
= ctx
->DrawBuffer
;
596 /* ask device driver for size of output buffer */
597 ctx
->Driver
.GetBufferSize( buffer
, &newWidth
, &newHeight
);
599 /* see if size of device driver's color buffer (window) has changed */
600 if (buffer
->Width
!= newWidth
|| buffer
->Height
!= newHeight
) {
601 if (ctx
->Driver
.ResizeBuffers
)
602 ctx
->Driver
.ResizeBuffers(ctx
, buffer
, newWidth
, newHeight
);
606 if (ctx
->ReadBuffer
&& ctx
->ReadBuffer
!= ctx
->DrawBuffer
607 && ctx
->ReadBuffer
->Name
== 0) {
608 GLuint newWidth
, newHeight
;
609 GLframebuffer
*buffer
= ctx
->ReadBuffer
;
611 /* ask device driver for size of read buffer */
612 ctx
->Driver
.GetBufferSize( buffer
, &newWidth
, &newHeight
);
614 /* see if size of device driver's color buffer (window) has changed */
615 if (buffer
->Width
!= newWidth
|| buffer
->Height
!= newHeight
) {
616 if (ctx
->Driver
.ResizeBuffers
)
617 ctx
->Driver
.ResizeBuffers(ctx
, buffer
, newWidth
, newHeight
);
621 ctx
->NewState
|= _NEW_BUFFERS
; /* to update scissor / window bounds */
626 * XXX move somewhere else someday?
629 _mesa_SampleCoverageARB(GLclampf value
, GLboolean invert
)
631 GET_CURRENT_CONTEXT(ctx
);
633 if (!ctx
->Extensions
.ARB_multisample
) {
634 _mesa_error(ctx
, GL_INVALID_OPERATION
, "glSampleCoverageARB");
638 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx
);
639 ctx
->Multisample
.SampleCoverageValue
= (GLfloat
) CLAMP(value
, 0.0, 1.0);
640 ctx
->Multisample
.SampleCoverageInvert
= invert
;
641 ctx
->NewState
|= _NEW_MULTISAMPLE
;
648 * Define the scissor box.
650 * \param x, y coordinates of the scissor box lower-left corner.
651 * \param width width of the scissor box.
652 * \param height height of the scissor box.
656 * Verifies the parameters and updates __GLcontextRec::Scissor. On a
657 * change flushes the vertices and notifies the driver via
658 * the dd_function_table::Scissor callback.
661 _mesa_Scissor( GLint x
, GLint y
, GLsizei width
, GLsizei height
)
663 GET_CURRENT_CONTEXT(ctx
);
664 ASSERT_OUTSIDE_BEGIN_END(ctx
);
666 if (width
< 0 || height
< 0) {
667 _mesa_error( ctx
, GL_INVALID_VALUE
, "glScissor" );
671 if (MESA_VERBOSE
& VERBOSE_API
)
672 _mesa_debug(ctx
, "glScissor %d %d %d %d\n", x
, y
, width
, height
);
674 if (x
== ctx
->Scissor
.X
&&
675 y
== ctx
->Scissor
.Y
&&
676 width
== ctx
->Scissor
.Width
&&
677 height
== ctx
->Scissor
.Height
)
680 FLUSH_VERTICES(ctx
, _NEW_SCISSOR
);
683 ctx
->Scissor
.Width
= width
;
684 ctx
->Scissor
.Height
= height
;
686 if (ctx
->Driver
.Scissor
)
687 ctx
->Driver
.Scissor( ctx
, x
, y
, width
, height
);
692 /**********************************************************************/
693 /** \name Initialization */
697 * Initialize the context's scissor state.
698 * \param ctx the GL context.
701 _mesa_init_scissor(GLcontext
*ctx
)
704 ctx
->Scissor
.Enabled
= GL_FALSE
;
707 ctx
->Scissor
.Width
= 0;
708 ctx
->Scissor
.Height
= 0;
713 * Initialize the context's multisample state.
714 * \param ctx the GL context.
717 _mesa_init_multisample(GLcontext
*ctx
)
719 ctx
->Multisample
.Enabled
= GL_FALSE
;
720 ctx
->Multisample
.SampleAlphaToCoverage
= GL_FALSE
;
721 ctx
->Multisample
.SampleAlphaToOne
= GL_FALSE
;
722 ctx
->Multisample
.SampleCoverage
= GL_FALSE
;
723 ctx
->Multisample
.SampleCoverageValue
= 1.0;
724 ctx
->Multisample
.SampleCoverageInvert
= GL_FALSE
;