Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Latest commit

 

History

History
15 lines (9 loc) · 765 Bytes

File metadata and controls

15 lines (9 loc) · 765 Bytes

Dear Imgui Sample using OpenTK

BadImageFormatexception

If you get the following error you might have to set your platform target to x86:

System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)'

To do that, right click your project (all projects referencing ImGui.NET), click "Properties", click "Build", and change the "Platform target" to "x86".

Remember to enable/disable OpenGL features after use!

Note that ImGuiController.Render() enables and disables some OpenGL features, such as blending, scissor testing, face culling and depth testing. It also changes the blend equation and blend function. Remember to reset these after you call ImGuiController.Render()!