the Fiddler's picture

GraphicsMode returns hardcoded mode on Mac OS X

Project:The Open Toolkit library
Version:1.1-2014-01-02
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Version:1.0.0-rc1» 1.x-dev
Status:open» fixed

Fixed in trunk r2977.

the Fiddler's picture

#2

Version:1.x-dev» 1.1-2014-01-02
Status:fixed» closed

Closing bugs fixed in OpenTK 1.1.

If this is still an issue please file a new bug report at https://github.com/opentk/opentk/issues