gallium: Fixups for driCreateConfigs MSAA support.
Add the MSAA samples array or make sure its contents are initialized.
This commit is contained in:
@@ -495,6 +495,8 @@ intelFillInModes(__DRIscreenPrivate *psp,
|
||||
|
||||
stencil_bits_array[2] = (stencil_bits == 0) ? 8 : stencil_bits;
|
||||
|
||||
msaa_samples_array[0] = 0;
|
||||
|
||||
depth_buffer_factor = ((depth_bits != 0) || (stencil_bits != 0)) ? 3 : 1;
|
||||
back_buffer_factor = (have_back_buffer) ? 3 : 1;
|
||||
|
||||
@@ -733,6 +735,8 @@ __DRIconfig **intelInitScreen2(__DRIscreenPrivate *psp)
|
||||
depth_bits[3] = 24;
|
||||
stencil_bits[3] = 8;
|
||||
|
||||
msaa_samples_array[0] = 0;
|
||||
|
||||
fb_format[0] = GL_RGB;
|
||||
fb_type[0] = GL_UNSIGNED_SHORT_5_6_5;
|
||||
|
||||
|
Reference in New Issue
Block a user