FLTK logo

STR #175

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 mike
11:45 Sep 20, 2003
str175.patch
1k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.