mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
st/mesa: only enable GL_EXT_framebuffer_multisample if GL_MAX_SAMPLES >= 2
We never really have multisampling with one sample per pixel.
See also http://bugs.freedesktop.org/show_bug.cgi?id=59873
Note: This is a candidate for the 9.0 branch.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit c80bacba2e)
This commit is contained in:
parent
7b9e99f45b
commit
c7e5e9ddce
1 changed files with 4 additions and 1 deletions
|
|
@ -534,7 +534,6 @@ void st_init_extensions(struct st_context *st)
|
|||
ctx->Extensions.EXT_blend_minmax = GL_TRUE;
|
||||
ctx->Extensions.EXT_framebuffer_blit = GL_TRUE;
|
||||
ctx->Extensions.EXT_framebuffer_object = GL_TRUE;
|
||||
ctx->Extensions.EXT_framebuffer_multisample = GL_TRUE;
|
||||
ctx->Extensions.EXT_fog_coord = GL_TRUE;
|
||||
ctx->Extensions.EXT_gpu_program_parameters = GL_TRUE;
|
||||
ctx->Extensions.EXT_pixel_buffer_object = GL_TRUE;
|
||||
|
|
@ -654,6 +653,10 @@ void st_init_extensions(struct st_context *st)
|
|||
}
|
||||
}
|
||||
|
||||
if (ctx->Const.MaxSamples >= 2) {
|
||||
ctx->Extensions.EXT_framebuffer_multisample = GL_TRUE;
|
||||
}
|
||||
|
||||
if (ctx->Const.MaxDualSourceDrawBuffers > 0)
|
||||
ctx->Extensions.ARB_blend_func_extended = GL_TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue