* EglGraphicsMode.cs:

Removed unused Egl.GetConfigs call.
This commit is contained in:
the_fiddler 2011-01-14 10:28:37 +00:00
parent 0c27512d5f
commit 799b321375

View file

@ -72,12 +72,7 @@ namespace OpenTK.Platform.Egl
throw new GraphicsModeException(String.Format("Failed to initialize display connection, error {0}", Egl.GetError())); throw new GraphicsModeException(String.Format("Failed to initialize display connection, error {0}", Egl.GetError()));
int num_configs; int num_configs;
if (!Egl.GetConfigs(display, null, 0, out num_configs)) if (!Egl.ChooseConfig(display, attribList, configs, configs.Length, out num_configs) || num_configs == 0)
{
throw new GraphicsModeException(String.Format("Failed to retrieve GraphicsMode configurations, error {0}", Egl.GetError()));
}
if (!Egl.ChooseConfig(display, attribList, configs, configs.Length, out num_configs))
{ {
throw new GraphicsModeException(String.Format("Failed to retrieve GraphicsMode, error {0}", Egl.GetError())); throw new GraphicsModeException(String.Format("Failed to retrieve GraphicsMode, error {0}", Egl.GetError()));
} }