Bug 43949

Summary: OSMesa does not work with 565 pixel format
Product: Mesa Reporter: Alex Galakhov <agalakhov>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 7.11   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix for 565 pixel format

Description Alex Galakhov 2011-12-19 05:22:13 UTC
Created attachment 54568 [details] [review]
Fix for 565 pixel format

The following code did not work due to forgotten case statement:

ctx = OSMesaCreateContext(OSMESA_RGB_565, NULL);
OSMesaMakeCurrent(ctx, fb, GL_UNSIGNED_SHORT_5_6_5, 800, 480);

The attached patch fixes the problem.
Comment 1 Brian Paul 2011-12-19 06:41:47 UTC
Thanks for finding that.  Patch committed as d334a0fb8cbb368c337858b16cb567a28a35f688

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.