
GraphicsMode returns hardcoded mode on Mac OS X
Posted Friday, 26 March, 2010 - 19:04 by the Fiddler| Project: | The Open Toolkit library |
| Version: | 1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Jump to:
Description
The GraphicsMode implementation on Mac OS X (MacOSGraphicsMode.cs) always returns a mode with id = 1, irrespective of the parameters requested by the user.
public GraphicsMode SelectGraphicsMode(ColorFormat color, int depth, int stencil, int samples, ColorFormat accum, int buffers, bool stereo) { GraphicsMode gfx = new GraphicsMode((IntPtr)1, color, depth, stencil, samples, accum, buffers, stereo); System.Diagnostics.Debug.Print("Created dummy graphics mode."); return gfx; }
This can cause problems when mode 1 is not supported (for example, when running under VMWare). We should implement support for pixel formats as outlined here and here.


Comments
#1
Fixed in trunk r2977.