Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuzy committed Nov 20, 2022
1 parent dbb20fb commit 137970e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Veldrid/OpenGL/EGL/EGLNative.cs
Expand Up @@ -39,7 +39,7 @@ internal static unsafe class EGLNative
[DllImport(LibName)]
public static extern IntPtr eglGetCurrentDisplay();
[DllImport(LibName)]
public static extern IntPtr eglGetDisplay(int native_display);
public static extern IntPtr eglGetDisplay(IntPtr native_display);
[DllImport(LibName)]
public static extern IntPtr eglGetCurrentSurface(int readdraw);
[DllImport(LibName)]
Expand Down Expand Up @@ -81,4 +81,4 @@ internal enum EGLError
BadSurface = 0x300D,
ContextLost = 0x300E,
}
}
}
2 changes: 1 addition & 1 deletion src/Veldrid/OpenGL/OpenGLGraphicsDevice.cs
Expand Up @@ -615,7 +615,7 @@ private void InitializeUIView(GraphicsDeviceOptions options, IntPtr uIViewPtr)
IntPtr aNativeWindow,
SwapchainDescription swapchainDescription)
{
IntPtr display = eglGetDisplay(0);
IntPtr display = eglGetDisplay((IntPtr)0);
if (display == IntPtr.Zero)
{
throw new VeldridException($"Failed to get the default Android EGLDisplay: {eglGetError()}");
Expand Down

0 comments on commit 137970e

Please sign in to comment.