mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 02:35:36 +00:00
* EglGraphicsMode.cs:
Removed unused Egl.GetConfigs call.
This commit is contained in:
parent
0c27512d5f
commit
799b321375
|
@ -72,12 +72,7 @@ namespace OpenTK.Platform.Egl
|
|||
throw new GraphicsModeException(String.Format("Failed to initialize display connection, error {0}", Egl.GetError()));
|
||||
|
||||
int num_configs;
|
||||
if (!Egl.GetConfigs(display, null, 0, out num_configs))
|
||||
{
|
||||
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))
|
||||
if (!Egl.ChooseConfig(display, attribList, configs, configs.Length, out num_configs) || num_configs == 0)
|
||||
{
|
||||
throw new GraphicsModeException(String.Format("Failed to retrieve GraphicsMode, error {0}", Egl.GetError()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue