dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
768 stars 300 forks source link

WPF control defaults to GDI Generic OpenGL 1.1 #134

Closed r2d2rigo closed 7 years ago

r2d2rigo commented 7 years ago

I'm doing a WPF app that uses SharpGL's OpenGLControl for displaying some 3D data. However, there's a problem with it - it always creates a 1.1 context, no matter which OpenGLVersion is selected. It seems to be an issue of falling back to the default OpenGL implementation, since the context displays this info:

    Renderer    "GDI Generic"   string
    Vendor  "Microsoft Corporation" string
    Version "1.1.0" string

Manually creating a new context uses the latest OpenGL version, though:

    Renderer    "Intel(R) HD Graphics 5000" string
    Vendor  "Intel" string
    Version "4.3.0 - Build 20.19.15.4568"   string

System is a Surface Pro 3 running Windows 10 Anniversary.

r2d2rigo commented 7 years ago

Neverming - setting RenderContextType="FBO" on XAML fixed the issue.