Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Invalid Pixelformat on OpenGL-Context

This topic is 2874 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


Just solved the problem by manually loading gl with LoadLibrary and then allocate and
create my ARB-Resoltuion.

Share this post

Link to post
Share on other sites
As i just see, the context isnt realy discarded when calling dispose. It should erase the context but i
could draw after call Dispose on the Window.

public override void Dispose()
Windows.WinXCore.MakeCurrent(IntPtr.Zero, IntPtr.Zero);
Windows.WinCore.ReleaseDC(controlHandle, deviceContext);
locked = false;

renderingContext = IntPtr.Zero;
deviceContext = IntPtr.Zero;

Share this post

Link to post
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!