Skip to content

GLGraphicsContext.CreateSwapChain throws NRE when target is Windows #239

Description

@mihaigonciar

Configuration:
Empty Evergine project targeting Avalonia.
Use GLGraphicsContext instead of DX11GraphicsContext on Windows host.
Evergine version: 2026.5.26.682

The EvergineControl.CreateDisplayWithSwapChain(uint width, uint height) method throws a null reference exception at swapChain instantiation.

Exception details show the following:

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Evergine.Bindings.OpenGL
  StackTrace:
   at Evergine.Bindings.OpenGL.GL.glGenVertexArrays(Int32 n, UInt32* arrays)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions