Comments (1)
Hello!
In the future you should include a stack trace from the crash, otherwise there usually isn't enough info to help you debug. It's shown in the call stack window of Visual Studio when the debugger stops your program. It'll look something like this:
(If you don't see this window, go to Debug > Windows > Call Stack)
That being said, your render code isn't quite right. ImGui::UpdatePlatformWindows
and ImGui::RenderPlatformWindowsDefault
must happen after ImGui::Render
.
You're getting a crash because you're trying to render platform windows before ImGui::Render
is called to create the draw data necessary to render them.
Additionally you're missing the logic for backing up and restoring the OpenGL context, see the example_glfw_opengl3
for reference:
imgui/examples/example_glfw_opengl3/main.cpp
Lines 194 to 203 in adcc321
from imgui.
Related Issues (20)
- Feature Request: Variable font weight support for variable OTF fonts HOT 3
- Noob Issue - Button: visible, hover: works, onclick: always returns: false! (w/ SDL backend) HOT 5
- DualShock4 Gamepad detected on GLFW but not Win32 HOT 3
- Loading a faulty ini file with invalid docked size HOT 2
- Mouse inputs not working with GLFW backend HOT 4
- Modifying what's in an ImGui::Input HOT 4
- How I can do something when a widget changed its data HOT 1
- Inconsistent result between AddImageRounded and AddImage
- how to zoom a picture hard edges HOT 2
- Docking DockBuilder with DockSpaceOverViewport
- Rendering result on ImGui::Image is wrong during resizing ImGuiViewport HOT 1
- Custom ini setting handler saves settings but does not load settings HOT 2
- How to handle key events properly. HOT 7
- "Hold SHIFT to enable Docking window" tooltip inherits `NextWindowData` HOT 1
- SDL3 backend text input does not work HOT 2
- How to create a very big table? HOT 1
- Standalone ImDrawList/ImDrawCmd/Low level renderer API HOT 2
- `TextWrapped` will cause `too-many-vertices` error for long single-line strings HOT 2
- How do I load custom fonts in memory? HOT 2
- PDIRECT3D11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.