mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 10:48:21 +02:00
gallium/osmesa: Fix MakeCurrent of non-8888 contexts.
OSMesa is weird and you only get the type (byte/ubyte/565/etc.) at MakeCurrent time, having only a channel order at CreateContext time. The code was setting up a visual at CreateContext time, and then at MakeCurrent it would fail to validate against the visual. Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216>
This commit is contained in:
parent
655394c6ed
commit
0a53918f02
1 changed files with 1 additions and 1 deletions
|
|
@ -697,7 +697,7 @@ OSMesaCreateContextAttribs(const int *attribList, OSMesaContext sharelist)
|
|||
attribs.options.force_glsl_version = 0;
|
||||
|
||||
osmesa_init_st_visual(&attribs.visual,
|
||||
PIPE_FORMAT_R8G8B8A8_UNORM,
|
||||
PIPE_FORMAT_NONE,
|
||||
osmesa->depth_stencil_format,
|
||||
osmesa->accum_format);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue