Unable to initialize OpenGL loader #6814
AdrianPeh
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 1 comment 3 replies
-
You are not specifying what the problem is. Are you getting an error, an assert, a crash? Using GLSL version 450 requires a GL 4.5 contexts so that's entirely a question of how you initialize your GL context and has nothing to do with the OpenGL loader per-se, afaik. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been following https://github.com/ocornut/imgui/wiki/Getting-Started#setting-up-dear-imgui--backends and the example codes to incorporate imgui into my school project. First time using imgui and not sure what is missing in my code. Tried looking around for past posts/discussions but non seem to be working. Looking for advice or feedback, will be looking on my own end too. Thanks for reading this post.
Issue: I am getting an assert from ImGui_ImplOpenGL3_NewFrame()
Potential cause: ImGui_ImplOpenGL3_Init("#version 450"); seems to not work
IDE: VS 2022
Renderer: OpenGL
Platform: Win32
The following snippets are what I have added/done so far
// Includes & headers
#include "imgui_impl_win32.h" #include "imgui_impl_opengl3.h" extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
// WndProc handler
// Initialization
// Core loop
// Shutdown
Beta Was this translation helpful? Give feedback.
All reactions