View Issue Details

IDProjectCategoryView StatusLast Update
0020740Open CASCADEOCCT:Visualizationpublic2013-09-23 17:40
ReporteragvAssigned Tosan 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version6.3.1 
Summary0020740: ChoosePixelFormat fails to find the correct number of Depth bits
DescriptionOn Intel 915 or 945 chipset the OCC view provided insufficient number of depth
bits (16) while there were at least 24 bits supported by the system.

It was discovered that the method ChoosePixelFormat was called with nDepthBits
== 32, and since there was no match it returned the first available format with
the required nColorBits == 32. This was the format "4" that has nDepthBits ==
16. It will be more relevant to choose the format "6" that has nDepthBits == 24
and nColorBits == 32.

This incident is bug because the customer was not satisfied by the presentation
of surfaces on the mentioned chipsets.

The correction may consist in calling ChoosePixelFormat in a loop that would
test couples of values (nDepthBits, nColorBits) from (32, 32) till (16, 24). The
first matching couple is deteced upon the next call of DescribePixelFormat and
used as the parameter of SetPixelFormat. See my attachment.
TagsNo tags attached.
Test case number

Attached Files

  • OpenGl_txgl.c.gz (7,685 bytes)

Relationships

related to 0024148 closedbugmaster Test case bugs/vis/bug24131_markers works wrong with software MS OpenGL 

Activities

2008-12-05 11:15

 

OpenGl_txgl.c.gz (7,685 bytes)

Issue History

Date Modified Username Field Change
2008-12-11 10:42 bugmaster Assigned To bugmaster => san
2008-12-11 10:42 bugmaster Status new => assigned
2008-12-11 10:42 bugmaster Status assigned => resolved
2009-03-13 19:46 mkv Status resolved => tested
2009-03-16 16:54 bugmaster Status tested => verified
2009-06-25 13:16 bugmaster Status verified => closed
2009-06-25 13:16 bugmaster Resolution @0@ => fixed
2011-08-02 11:24 bugmaster Category OCCT:VIZ => OCCT:Visualization
2013-09-23 17:40 san Relationship added related to 0024148