Open celinedrules opened 10 months ago
You should try capturing some frames (without and with ImGui active) with RenderDoc, there you can analyze your pipeline state for each draw call in detail. You should be able to pinpoint your exact problem that way. Basically compare the pipeline state when your shapes show up versus the state of the same draw call when they don't.
Hello @celinedrules have you found what was causing your issue?
I can successfully render OpenGL to my window and I can render ImGui to the window as well. The problem is that when I render anything ImGui related, the non ImGui stuff disappears. For example, I am rendering two shapes on the screen just fine but when I show the ImGui demo window, the shapes do not show anymore.
I think I have narrowed it down to this line in my ImGui controller
vertHandle = GL.CreateShader(ShaderType.VertexShader);
This is called during ImGui initialization. If I disable initialization/rendering of ImGui the shapes reappear.Here is the function that is called during initialization
Here is my Update
Here is my Render
Here is RenderDrawData