| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #175
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 2 - Specific to an operating system |
Subsystem: | OpenGL |
Summary: | Pixel format incorrectly chosen |
Version: | 1.1.4 |
Created By: | cmg.cse.wustl |
Assigned To: | mike |
Fix Version: | 1.1.5rc1 |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | cmg.cse.wustl 18:01 Sep 19, 2003 |
| This is both a problem and a fix; in Fl_Gl_Choice.cxx the pixel format doesn't select for the best possible depth buffer in addition to color planes. This causes bad depth problems on cards where it chooses only 8 bits depth.
I've fixed it as follows; might make sense to check for alpha/stencil bits as well.
if (pixelformat) { // offering overlay is better: if (!(chosen_pfd.bReserved & 15) && (pfd.bReserved & 15)) {} // otherwise more bit planes is better: else if (chosen_pfd.cColorBits > pfd.cColorBits) { continue; } else if ( chosen_pfd.cDepthBits > pfd.cDepthBits ) { continue; } }
| |
|
#2 | mike 11:45 Sep 20, 2003 |
| Can you check the attached patch to see if it is equivalent to your change?
Thanks! | |
|
#3 | cmg.cse.wustl 06:52 Sep 22, 2003 |
| Looks correct. Thanks!
--Cindy | |
[ Return to Bugs & Features ]
|
| |