Archived issue #0023246
TKOpenGl viewer created without depth buffer on some X11 implementations
Description
On Mac OS X 10.6 with default XQuartz 2.3.6 TKOpenGl context created without depth buffer. Notice that problem not reproduced with newer XQuartz and default settings.
The fix is trivial, in OpenGl_Window.cxx
> else
> {
> GLCONTEXT ctx;
>
> #if defined(__linux) || defined(Linux)
> if (aVis != NULL)
> {
> // check Visual for OpenGl context's parameters compability
> int isGl = 0, isDoubleBuffer = 0, isRGBA = 0, aDepthSize = 0;
visual validation should be performed on Mac OS X platform too.
Preprocessor condition should be extended with defined(__APPLE__).
The fix is trivial, in OpenGl_Window.cxx
> else
> {
> GLCONTEXT ctx;
>
> #if defined(__linux) || defined(Linux)
> if (aVis != NULL)
> {
> // check Visual for OpenGl context's parameters compability
> int isGl = 0, isDoubleBuffer = 0, isRGBA = 0, aDepthSize = 0;
visual validation should be performed on Mac OS X platform too.
Preprocessor condition should be extended with defined(__APPLE__).
Public activity
3 archived notes
Participants are labeled by their role within this record.
Patch is ready in CR23246 branch
Reviewed without remarks. Please test.
Dear Commenter 1,
Branch CR23246 (and products from GIT master) was compiled on Linux and Windows platforms and tested.
Regression:
Not detected
Improvements:
Not detected
Testing case:
Not needed
Branch CR23246 (and products from GIT master) was compiled on Linux and Windows platforms and tested.
Regression:
Not detected
Improvements:
Not detected
Testing case:
Not needed